2008/11 8
Linux tar 命令中,可以使用-N参数实现只打包更新时间大于指定时间的文件。

较为完整的备份流程:


tar czf a.tar.gz a #将a文件进行全量备份
touch a.timestamp #记录时间点


touch a.timestamp2 #记录增量备份开始时间
tar czf a.tar.gz a -N a.timestamp #增量备份
mv a.timestamp2 a.timestamp #覆盖原时间点。

作者 rollenc

Last modified on 2008-11-08 05:49

0 引用

  1. 没有引用

0 回复

  1. 没有回复

新增回复


You can use [geshi lang=lang_name [,ln={y|n}]][/lang] tags to embed source code snippets
电子邮件地址将不会被显示,而仅将被用于发送电子邮件通知