System Administration Guide

How to Copy Files to a Tape (pax)

  1. Change to the directory that contains the files you want to copy.

  2. Insert a write-enabled tape into the tape drive.

  3. Copy the files to tape with the pax command.


    $ pax -w -f /dev/rmt/0 .
    

    -w

    Copies the current directory contents to tape. 

    -f /dev/rmt/0

    Identifies the tape drive. 

  4. Verify the files are copied to tape by using the pax -l command.


    $ pax -l -f /dev/rmt/0
    
  5. Remove the tape from the drive and write the names of the files on the tape label.

Example--Copying Files to a Tape (pax)


$ pax -w -f /dev/rmt/0 .
$ pax -l -f /dev/rmt/0
filea fileb filec

See pax(1) for more information.