cpio

mBird (mcn@ma.ultranet.com)
Mon, 17 Feb 1997 14:25:34 -0500


When I use cpio I do a backup with:
find . | cpio -o -O/dev/rmt0

Then I can view it:
cpio -itv -I/dev/rmt0

and I can restore the ENTIRE backup starting at any dir I want
(restores to current dir that this command is run from):
cpio -i -I/dev/rmt0

But my question is how can I restore say just one file of one sub dir into a different dir than it was backed up as. When I do:
cpio -imd 'myfiles' < /dev/rmt0
I get the files back in the original dir they were backed up from. What I want is say to backup /dos1/utils/sub1/*.* and then be able to restore sub1 and all its files into say /home/me/sub1

Thanks