Backup Commands
Backup Commands
List the contents of the next tar-file on the tape: tar -tvf /dev/nst0
Put the directory (or files and directories) <stuff> (with all
its sub-directories) at the current position on tape: tar -cvf
/dev/nst0 <stuff>
Extract everything from the next tar-file on the tape into the
current directory: tar -xvf /dev/nst0
Extract (only) <stuff> from the next tar-file on the tape into the
current directory: tar -xvf /dev/nst0 <stuff>
Typical sessions
Backup / Store
1. Insert tape in tape drive and probably switch SCSI Switch to one.
2. Check status of tape: mt -f /dev/nst0 stat
Restore
1. Insert tape in tape drive and probably switch SCSI Switch to one.
2. Check status of tape: mt -f /dev/nst0 stat
o If you are in the last block of a file and you should be at the
beginning of the file, do the following:
1. mt -f /dev/nst0 bsf 1
2. mt -f /dev/nst0 fsf 1