On Tue, 11 Jun 2002, Joshua Baker-LePain wrote:
> On 11 Jun 2002 at 11:31am, Tom Van de Wiele wrote
>
> > Subject says it all really. Is it possible to restore a certain file
> > from tape to a custom directory with amrecover?
>
> To a point. Amrecover (well, tar/restore really) will restore the entire
> path structure to a file (i.e. from the disklist entry down). But it will
> restore it into the $CWD. Where that is, is up to you.
The current directory is where you start amrecover from, but you can
change it using the command 'lcd'.
Say the file system is /home and you want to restore the directory
/home/tom. You could do this:
# cd /home
# amrecover Daily
# lcd /tmp
# add tom
# extract
Restoring files into directory /tmp
Continue? [Y/n]: y
This will create ./tom in the directory you changed to. In other words,
you should now have /tmp/tom.
--
Ulrik Sandberg