This example assumes that the raw device name for the tape drive is
/dev/st0, which is a pretty safe bet for a SCSI tape
drive on a Linux system.
/forest/trees/oak
(and everything below it) to tape.cd to /forest/trees and incant
tar -cf /dev/st0 oak
cd to wherever you want to restore
oak, then incant
tar -xf /dev/st0The
tar command will create the directory oak
in whatever directory you're in.
-v option to tar:
tar -cvf /dev/st0 oakAnd if you want to create a log file (
oak.log in this
example) as well as to display the files to the screen, you can
tar -cvf /dev/st0 oak | tee oak.logAnd as always, please
man tar.