2008/11 7
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 #覆盖原时间点。

Posted by rollenc

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as(Linear | Threaded)
  1. No comments

Add Comment


You can use [geshi lang=lang_name [,ln={y|n}]][/lang] tags to embed source code snippets
E-Mail addresses will not be displayed and will only be used for E-Mail notifications