AIX Restore - Into a different Directory

AIX Restore - Into a different Directory

Post by Stev » Sat, 20 Feb 1999 04:00:00



Am I blind or cant it be done!
Can a file on a DAT tape created using BACKUP be restored into a
different directory if it contains the full file system path and file
name starting with / ??

Steve

 
 
 

AIX Restore - Into a different Directory

Post by Jussi Saarine » Sun, 21 Feb 1999 04:00:00



> Am I blind or cant it be done!
> Can a file on a DAT tape created using BACKUP be restored into a
> different directory if it contains the full file system path and file
> name starting with / ??

> Steve

No, you can't. Backup created using backup or tar or whatever must be
done using relative path; starting with ./ not /
--


 
 
 

AIX Restore - Into a different Directory

Post by pe.. » Sun, 21 Feb 1999 04:00:00




>> Am I blind or cant it be done!
>> Can a file on a DAT tape created using BACKUP be restored into a
>> different directory if it contains the full file system path and file
>> name starting with / ??

>> Steve
> No, you can't. Backup created using backup or tar or whatever must be
> done using relative path; starting with ./ not /
> --


I guess that one could chroot to some directory and run restore
from there. You just have to copy some libs first ...

Modern backuptools (gnutar comes to my mind) will have the
alternative to do a relative restore on absolute backuops.

Let's hope ibm will incorporate those tools.
--
--
Peter H?kanson            Phone +46 0708 39 23 04
Network Management AB     Fax   +46 031 779 7844
Email : use peter (at) gbg (dot) netman (dot) se  No copy to sanford wallace!

 
 
 

AIX Restore - Into a different Directory

Post by Andy Hels » Sun, 21 Feb 1999 04:00:00





>>> Am I blind or cant it be done!
>>> Can a file on a DAT tape created using BACKUP be restored into a
>>> different directory if it contains the full file system path and file
>>> name starting with / ??

The only way i can think of is to mount a directory at a point you
want the files restored to (assuming you were talking data files
rather than system files), doing a restore and then unmounting the
filesystem, remounting it somewhere else and doing whatever with the
files....
Andy

--
Remove your brain to reply

 
 
 

AIX Restore - Into a different Directory

Post by Norman Levi » Mon, 22 Feb 1999 04:00:00


Yes, you are blind and it can't be done. (that was fun)
You can always create an lv with a filesystem that has your directory name.
Then mount it, and restore the absolute path data.  You can then use pax
to copy that data from a to b, that is,
pax -rw /a /b
--
Norman Levin
vm/dynAmIX inc.
 
 
 

AIX Restore - Into a different Directory

Post by Wayne Marriso » Tue, 23 Feb 1999 04:00:00


Check out the pax command.

>Am I blind or cant it be done!
>Can a file on a DAT tape created using BACKUP be restored into a
>different directory if it contains the full file system path and file
>name starting with / ??

>Steve

 
 
 

AIX Restore - Into a different Directory

Post by Paul S. Barr » Tue, 23 Feb 1999 04:00:00


I can sympathise with your problem, but I can also sympathise
with the designers.
A tool to do this? Doesn't that defeat the feature that was built in by design?
Maybe I like the tool, or feature that prevents my subordinate from restoring to
the wrong directory. I can control the possibilities in more detail.

I tend to look at the designers as smart, not stupid.
In this case I agree with the design, the error was in the usage.

Paul




> >> Am I blind or cant it be done!
> >> Can a file on a DAT tape created using BACKUP be restored into a
> >> different directory if it contains the full file system path and file
> >> name starting with / ??

> >> Steve

> > No, you can't. Backup created using backup or tar or whatever must be
> > done using relative path; starting with ./ not /
> > --

> I guess that one could chroot to some directory and run restore
> from there. You just have to copy some libs first ...

> Modern backuptools (gnutar comes to my mind) will have the
> alternative to do a relative restore on absolute backuops.

> Let's hope ibm will incorporate those tools.
> --
> --
> Peter H?kanson            Phone +46 0708 39 23 04
> Network Management AB     Fax   +46 031 779 7844
> Email : use peter (at) gbg (dot) netman (dot) se  No copy to sanford wallace!