scuser> echo $TAPE
to display the TAPE environment variable. It should be set to /dev/rmt/0n, the name of the tape device. The mt and tar commands described below use this environment variable to drive the tape device. If it is not set properly, type
scuser> setenv TAPE /dev/rmt/0n
to set it.
scuser> mt stat
The mt command is the Unix command to position and monitor the status of a tape device. You should see a message indicating you are at file 0. If this is a new tape, you can begin writing data immediately. If the tape is not new (you have already recorded a tar file on it, and you want to append a file to the end), type
scuser> mt eom
This variant of mt positions the tape at the end of media. You can use mt eom on what you believe is a new tape to make absolutely sure there is no data already on it -- mt will leave a new tape at the beginning. As a last check, re-run mt stat after mt eom is complete, and make sure the displayed file number corresponds to the expected value. For example, if there is 1 file on tape, mt stat should print that the tape is positioned at the beginning of file 1 because the file numbers are zero-based.
scuser> tar cv sep25
The c option means create a new file, and v stands for verbose -- you should now see the names of all the files in the subdirectory printed on the screen as they are backed up to tape.
scuser> mt offline
to rewind and eject the tape.
yourmachine> tar xv
(assuming the TAPE environment variable is correctly set on your machine). The tar program will automatically create the ``sep25'' subdirectory in the directory from which it is run, and put all the files in there.