# mt -f /dev/st0 rewindBackup directory /www and /home with tar command (z - compressed):
# tar -czf /dev/st0 /www /homeFind out what block you are at with mt command:
# mt -f /dev/st0 tellDisplay list of files on tape drive:
# tar -tzf /dev/st0Restore /www directory:
# cd /
# mt -f /dev/st0 rewind
# tar -xzf /dev/st0 wwwUnload the tape:
# mt -f /dev/st0  offlineDisplay status information about the tape unit:
# mt -f /dev/st0   statusErase the tape:
# mt -f /dev/st0 eraseYou can go BACKWARD or FORWARD on tape with mt command itself:
(a) Go to end of data:
# mt -f /dev/nst0 eod(b) Goto previous record:
# mt -f /dev/nst0  bsfm 1
# mt -f /dev/nst0  fsf 1 
 
No comments:
Post a Comment