On Solaris, you can use the tar and cpio commands to perform tape backups and recoveries.
To perform a tape backup using tar, you will need to use the -M flag to specify that the output should be sent to multiple tapes. For example:
tar -cvfM /dev/rmt/0 /path/to/backup
This will create a tar archive of the files and directories specified in /path/to/backup and write it to the first tape in the tape drive (/dev/rmt/0). When the first tape is full, tar will prompt you to change to the next tape.
To perform a tape backup using cpio, you will need to use the -ocB flags to specify that the output should be written to stdout and that the blocks should be the same size as the tape blocks. For example:
find /path/to/backup -depth -print | cpio -ocB > /dev/rmt/0
This will create a cpio archive of the files and directories specified in /path/to/backup and write it to the tape drive (/dev/rmt/0).
To recover files from a tape backup using tar, use the -x flag to extract the files from the archive. For example:
tar -xvfM /dev/rmt/0
This will extract the files from the tape archive and write them to the current directory.
To recover files from a tape backup using cpio, use the -icB flags to read from stdin and specify the block size. For example:
cpio -icB < /dev/rmt/0
This will extract the files from the tape archive and write them to the current directory.
Note: These commands require root privileges to execute.