De Help Desk punt NL
De Helpdesk > De Helpdesk > Kennisbank

Commands to use a tape device

Oplossing Summaries commands to use a tape device.
This small list shows only the most common options; however, it is highly recommended that you go through man pages of mt and tar command for more options/information. To use the following comands, you have to be root. Otherwise, you can use them with sudo.

Rewind tape drive:
mt -f /dev/st0 rewind

Backup directory /www and /home with tar command (z - compressed):

tar -czf /dev/st0 /www /home

Find out what block you are at with mt command:

mt -f /dev/st0 tell

Display list of files on tape drive:

tar -tzf /dev/st0

Restore /www directory:

cd /
mt -f /dev/st0 rewind
tar -xzf /dev/st0 www

Unload the tape:

mt -f /dev/st0 offline

Display status information about the tape unit:

mt -f /dev/st0 status

Erase the tape:

mt -f /dev/st0 erase

Go to previous record:

mt -f /dev/nst0 bsfm 1

Forward record:

mt -f /dev/nst0 fsf 1

Go to end of data:

mt -f /dev/nst0 eod
Was dit artikel bruikbaar? ja / nee
Gerelateerde artikelen Amanda - Creating Successful Backups
Backups using Rsync, Bash & Cron
Artikel details
Artikel ID: 57
Categorie: Backup
Datum toegevoegd: 19-Oct-2009 12:41:56
Aantal bekeken: 721
Beoordeling (Stemmen): Artikel beoordeeld 4.8/5.0 (212)

« Ga terug