CPIO restore to a different directory ? - Solaris 2.3

CPIO restore to a different directory ? - Solaris 2.3

Post by Steve Thie » Sat, 04 Feb 1995 12:08:58



We back up our files using CPIO to an 8mm EXABYTE tape with the input
coming from a FIND command. On restoring a particular file from this
tape, I am unable to put it into a different directory to the one from
which it was backed up. Any ideas ?
 
 
 

1. Restoring to a different directory using CPIO

Hi

I am working on some recovery procedures on a AIX system at the moment. The
environment consists of two seperate servers with different file-systems and
mount points.

The source system is backed up regularly using a command along the following
lines

find / -name '*files*' - print | cpio -ocvB > /dev/rmt0

I want to be able restore the files from that tape on the target system but
direct the files into a different directory due to file-system space
constraints.

As the backups are using absolute referencing the cpio -id option is not
viable

The closest I have come to solving the problem is something like

cpio -ircvB "*files needed*" < /dev/rmt0

but the interactive nature of this is undesirable as it is intended as
procedures for an operator which can be kicked off and require no human
interaction, not to mention the risk of typos

Does anybody have a solution for this possibly using celver tricks with
pipes and sed/awk etc. I am out of ideas.

regards

MJW

2. MONEY FOR EVERYONE GOD BLESS YOU

3. Different tape devices prevent cpio restore

4. 'chat' bug - can't connect to ISP

5. cpio restore and owner of directories

6. Can't map a share from Windoze XP Pro to Samba

7. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

8. Max speed with ccd

9. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

10. pcnfs5.0 and Solaris 2.3 - problem with different shells

11. AIX Restore - Into a different Directory

12. re ; Tape restore to different Directory?

13. Tape restore to different Directory?