Change to the directory that contains the files you want to copy.
Insert a write-enabled tape into the tape drive.
Copy the files to tape with the pax command.
$ pax -w -f /dev/rmt/0 filename ... |
-w |
Enables the write mode. |
-f /dev/rmt/0 |
Identifies the tape drive. |
filename ... |
Indicates the files and directories you want to copy. |
Verify the files are copied to tape.
$ pax -f /dev/rmt/0 |
Remove the tape from the drive and write the names of the files on the tape label.
$ pax -w -f /dev/rmt/0 . $ pax -f /dev/rmt/0 filea fileb filec |
See pax(1) for more information.