>I've tried man amrecover but can find no way of extracting a single 
>file just from the command prompt.  ...

You *might* (and I emphasize the word "might") be able to do this by
running amrecover by hand and taking notes on everything you type, then
put that into a file and run amrecover with that file as standard input.

Make sure the tape is rewound before doing this, either at the end of
the amdump run or just before the amrecover.

If the above does not work, then you can use amrestore instead of
amrecover, something like this:

  cd someplace-safe
  rsh -n amanda-server \
    mt -f /dev/whatever rewind
  rsh -n amanda-server \
    /path/to/amrestore -p /dev/whatever client-1 /some/disk | \
    /your/restore/program -flags the/file/to/restore

I assume what you're trying to do is verify the tapes can be read and
files actually restored.  If you're using GNU tar, the amverify script
with Amanda does a very good job of this -- if it's happy, you're almost
certain to be able to do restores.

If you're using dump, amverify will tell you the tape itself is readable
but it cannot tell you whether the internal (dump) structure is sane.
Only a real restore can do that.

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to