焦油-u广告insteed的文件更新他们
问题描述:
tar cvf /path/name.tar --exclude='*/_files/cache/*' /home/a/
创建tar归档和
tar uvf /path/name.tar --exclude='*/_files/cache/*' /home/a/
更新(新增/变更的文件),但我每次执行它,所有文件都会再次添加,并且我的name.tar文件更大。如何更改更新文件,确保将它们的另一个副本添加到存档中?
答
由于MrTux解决方案是增加--delete:
tar uvf --delete /path/name.tar --exclude='*/_files/cache/*' /home/a/
https://unix.stackexchange.com/questions/92775/tar-u-operation – MrTux
这个问题是关于使用软件而不是编程它是[堆栈溢出](http://*.com/help/on-topic)的主题。 [su]或[unix.se]将成为此问题的更合适网站。 –