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

Last modified on 2008-11-07 13:49

0 Trackbacks

  1. No Trackbacks

0 Comments

  1. No comments

Add Comment


E-Mail addresses will not be displayed and will only be used for E-Mail notifications.