Tuesday, November 30, 2010

Redhat Enterprise version of Linux tape drive simple operations

4. read data tarxvf <要读取的文件名>/dev/st0, first before reading the data view content on tape, gets the name of the file you want to restore.

For example, view the results from the following: root @ dev131/root] # tartvf/dev/st0-rw-r--r--root/root3202006-12-0109: 29: 02 test1.tar.gz-rw-r--r--root/root3202006-12-0109: 30: 14 test2.tar.gz-rw-r--r--root/root3202006-12-0109: 44: 19 test3.tar.gz root @ dev131/root] # will resume its test3.tar.gz file, perform the following command: tarxvf/dev/st0test3.tar.gz after reading data. Root @ dev131 ~] # tarxvf/dev/root @ st0test3.tar.gz test3.tar.gz dev131 ~] # then you can find the current path is read from the tape out of the file: root @ dev131 ~] # ls-ltest3.tar.gz-rw-r--r--1rootroot320Dec111: 12 test3.tar.gz root @ dev131 ~] # this recovery operation is completed. Through the above described the tar command, use a tvf/cvf/rvf/xvf parameters, can be realized on tape read and writes. Use pre-written replication data scripts, with the tape drive operation command and placed into/etc/crontab, for automatic backups.

No comments:

Post a Comment