Below is a list of TAR and CPIO command integrated with REMSH command in order to remote access tape drive in another HPUX server. Refer Tar and Untar tape drive in another HPUX server to setup the server before try the commands below.
- CPIO into tape:
find /dir/or/files/to/cpio -print | cpio -oacvB | remsh OLDSERVER 'dd of=/dev/rmt/0m bs=64b'
- Verify CPIO tape:
remsh OLDSERVER 'dd if=/dev/rmt/0m bs=64b' | (cpio -itcvB)
- CPIO from tape:
remsh OLDSERVER 'dd if=/dev/rmt/0m bs=64b' | (cpio -iacvBdum)
- TAR into tape:
(tar -cvfb - 64
/dir/or/files/to/tar
) | remsh OLDSERVER 'dd of=/dev/rmt/0m bs=64b'
- Verify TAR tape:
remsh OLDSERVER 'dd if=/dev/rmt/0m bs=64b' | (tar -tvfb - 64)
- UNTAR from tape:
remsh OLDSERVER 'dd if=/dev/rmt/0m bs=64b' | (tar -xvpfb - 64)