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.
$ pax -w -f /dev/rmt/0 filenames |
-w |
Enables the write mode. |
-f /dev/rmt/0 |
Identifies the tape drive. |
filenames |
Indicates the files and directories that you want to copy. Separate multiple files with spaces. |
For more information, see pax(1).
Verify that 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.
The example shows how to use the pax command to copy all the files in the current directory.
$ pax -w -f /dev/rmt/0 . $ pax -f /dev/rmt/0 filea fileb filec |