Method of use of tape drive (TAR)

xiaoxiao2021-03-06  57

2003/07/18 Xu Yunsheng

1, copy file (or directory) to the tape drive

TAR CVF / DEV / ST0 FileName1 FileName2 ... (Copy Copy)

TAR RVF / DEV / ST0 FileName1 FileName2 ... (Add copy) or tar -r / filename1 ... -VF / dev / ST0 (did not tried)

2, list files on the tape drive

TAR TVF / DEV / ST0

3. Copy the files (or directory) on the tape to the current directory

TAR XVF / DEV / ST0 FileName FileName2

4. Remove one or several files from existing tapes

Tar - Delete etc / hosts -vf / dev / ST0

Note:

V: Display all information for files (such as properties, size, time, etc.)

f: The name of the tape written by the TAR file is behind.

==== TAR general usage ==============================

1. Package the file and directory of the WWW directory to the current directory.

#CD / VAR

TAR ZCVF WWW20040211.TAR.GZ ./www

2, unzipped to the current directory

Tar Zxvf www20040211.tar.gz

转载请注明原文地址:https://www.9cbs.com/read-114644.html

New Post(0)