Wednesday, April 18, 2012

Tape Backup & Restore Commands

Display the content of the tape.
tar tvf /dev/st0

To backup data to tape with compression
tar cvzf /dev/st0 /u01/ebiz

To restore entire data from the tape
tar -xvf /dev/st0 -C /u01/amila

To restore specific file from the tape
tar -xvf /dev/st0 u01/ebiz/db/tech_st/11.1.0/VIS_oracle.env -C /u01/amila


More good references:

http://www.ravisaive.in/2011/09/linux-tape-backup-with-tar-mt.html
http://www.cyberciti.biz/faq/linux-tape-backup-with-mt-and-tar-command-howto/

No comments:

Post a Comment