cd to the directory you want to archive, and issue the command>
solaris-$ find . -depth -print | cpio -ocBdum > filename.cpio
-or->
linux-$ find . -depth -print | cpio -o -H newc > filename.cpio
cd to the directory you want the archived files written to, and issue the command>
solaris-$ cpio -icBdum < filename.cpio
-or->
linux-$ cpio -idum -H newc < filename.cpio
cd to the directory you want to archive, and issue the command>
solaris-$ find . -depth -print | cpio -ocBdum > /dev/rmt/0
-or->
linux-$ find . -depth -print | cpio -o -H newc > /dev/rmt0
cd to the directory you want the archived files written to, and issue the command>
solaris-$ cpio -icBdum < /dev/rmt/0
-or->
linux-$ cpio -idum -H newc < /dev/rmt0
cd to the directory you want the archived file (/etc/hosts in this example) written to, and issue the command>
solaris-$ cpio -icBdum < /dev/rmt/0 "/etc/hosts"
-or->
linux-$ cpio -idum -H newc < /dev/rmt0 "/etc/hosts"
find etc -depth -print | cpio -o -H newc > cpios/etc.cpio
find include -depth -print | cpio -o -H newc > cpios/include.cpio
cpio -idum -H newc < /mnt/home/cpios/etc.cpio
cpio -idum -H newc < /mnt/home/cpios/include.cpio
rsh -n remote_host "cd /remote_dir ; find remote_file -depth -print | cpio -o -H newc" > local_archive
find local_file -depth -print | cpio -o -H newc -F remote_host:/remote_dir/remote_archive
find local_file -depth -print | cpio -o -H newc | ssh remote_host "cd /remote_dir ; dd of=remote_archive"
cpio -idum -H newc -F remote_host:/remote_dir/remote_archive
ssh remote_host "cd /remote_dir ; dd if=remote_archive" | cpio -idum -H newc
rsh -n remote_host dd if=/remote_dir/remote_archive | cpio -idum -H newc
dd if=/local_dir/local_archive | rsh -n remote_host "cd /remote_dir ; cpio -idum -H newc"