当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 使用TRA命令进行磁带备份的命令汇总

Unix/Linux
vi的命令
如何判断Zend Optimizer安装成功
Linux常用的日志文件和常用命令
linux如何修改主机名
linux如何删除非空文件夹|linux怎么删除非空文件夹
gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
vsftpd 配置例子
vsftpd 配置
vsftpd如何配置虚拟用户:PAM + PgSQL + FreeBSD-4
vsftp中文说明
VSFTP配置实例
vsftpd 配置(中)
怎么使用户能访问ftp,但不能远程登录
httpd: Could not determine the servers fully qualified domain name, using 127.0.
测试apache是否安装成功
apache 80端口无法打开|连接
make_sock: could not bind to address 0.0.0.0:443
kernel-headers下载
kernel-headers-2.2.1-4
找不到config.inc.php 没有config.inc.php这个文件

Unix/Linux 中的 使用TRA命令进行磁带备份的命令汇总


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 85 ::
收藏到网摘: n/a


  假设你已经设置并安装好了磁带机,本人用的是HP SuitStore 500,外置,SCSI接口。
  
  1. 查看磁带中的目录
  
  tar tvf /dev/st0
  
  2. 查看磁带内容并输出到一个文件中
  
  tar tvf /dev/st0 > stlist
  
  3. 备份档案
  
  tar cvf /dev/st0 /etc tar cvf /dev/st0 /etc/hosts /boot /etc/smb.conf
  
  4. 按指定的文件内容或目录释放出磁带中的相应文件
  
  tar -T stlist -xvf /dev/st0 tar xvfz /dev/st0 /etc/
  
  5. 附加个别文件到磁带后面
  
  tar -r /etc/hosts /etc/passwd -vf /dev/st0
  
  6. 从现有磁带中删除一个或几个文件
  
  tar --delete etc/hosts -vf /dev/st0
  
  7. 附加一个现有的tar文档到磁带后面
  
  tar -A pamd.tar -vf /dev/st0