Re: can I restore a file to a custom path?

2002-06-11 Thread Ulrik Sandberg

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






Re: can I restore a file to a custom path?

2002-06-11 Thread Joshua Baker-LePain

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.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




can I restore a file to a custom path?

2002-06-11 Thread Tom Van de Wiele

Hi

Subject says it all really.  Is it possible to restore a certain file
from tape to a custom directory with amrecover?

regards

Tom