From: Saxon, Lamar (Lamar.Saxon@AMERICREDIT.COM)
Date: Thu Aug 22 2002 - 11:43:34 EDT
You can create a link to another filesystem to restore the files to...
I.e....
cd /tmp
mkdir /tmp/restoration
cd restoration
ln -s /tmp/restoration /usr/version5
This will work as long as /usr/version5 does not exist on the machine you
are restoring to.
Lamar
-----Original Message-----
From: Ford, Phillip [mailto:phillip.ford@SPCORP.COM]
Sent: Thursday, August 22, 2002 10:34 AM
To: aix-l@Princeton.EDU
Subject: Re: Tar Tape Restore
When it is absolute you can make another filesystem and mount it over the
area it is restored to. In the example below do "mount /xxxxx
/usr/version5", untar, unmount /usr/version5 and then mount /xxxxx /new_area
and then there you have it.
Hope that helps
-- Phillip Ford Senior Software Specialist Corporate Computer Center Schering-Plough Corp. (901) 320-4462 (901) 320-4856 FAX phillip.ford@spcorp.com -----Original Message----- From: Green, Simon [mailto:SGreen@KRAFTEUROPE.COM] Sent: Thursday, August 22, 2002 10:05 AM To: aix-l@Princeton.EDU Subject: Re: Tar Tape Restore With tar, this can be difficult, depending on how it was created. Do a tar -tf /dev/rmt0. If they're backed up as "./user/version5/..." (more usual) then it's a relative file name. If you run the command from /tmp, files will be restored to /tmp/user/version5. If it shows files backed up as "/user/version5/...", then that's where they'll be restored, and there's nothing you can do about it. You may be able to do this with the pax command, though. Try... pax -rf/dev/rmt0 -s/version5/new_version5/ That will restore everything into "/user/version5/...". If you want it somewhere else, it's not too difficult to specify. (The default delimiter is "/", but you can use any character you like. Check the man page, of course.) Simon Green Philip Morris ITSC Europe AIX-L Archive at http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2 AIX FAQ at http://www.faqs.org/faqs/aix-faq/ N.B. Unsolicited email from vendors will seldom be appreciated. -----Original Message----- From: Mark Monroe [mailto:mark.monroe@FORMSANDSUPPLY.COM] Sent: 22 August 2002 15:27 To: aix-l@Princeton.EDU Subject: Tar Tape Restore I have a tar tape that was built with various files in this path: /user/version5/ I need to tar restore these files onto my system -- but -- I need to restore the files to a different path. I am having problems finding some doc that gives me the proper statement to do this. Would someone mind giving me a hand with this? *************************************************************** This message and any attachments is solely for the intended recipient. If you are not the intended recipient, disclosure, copying, use, or distribution of the information included in this message is prohibited -- please immediately and permanently delete this message.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:10 EDT