当前位置:操作系统 > Unix/Linux >>

备份配置文件的好方法

先把需要备份的文件放到一个文本中。

  vi configlist

  /etc/passwd

  /etc/inetd.conf

  /etc/hosts/allow

  /etc/hosts.deny

  然后用 tar 压缩:

  tar cvfzT /tmp/backup.tar.gz configlist

  tar: Removing leading `/` from absolute path names in the archive

  etc/passwd

  etc/inetd.conf本文来自:http://www.xiaoyaxiao.com/4560.html
发表您的高见!
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,