焦油-u广告insteed的文件更新他们

问题描述:

我使用焦油-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文件更大。如何更改更新文件,确保将它们的另一个副本添加到存档中?

+1

https://unix.stackexchange.com/questions/92775/tar-u-operation – MrTux

+0

这个问题是关于使用软件而不是编程它是[堆栈溢出](http://*.com/help/on-topic)的主题。 [su]或[unix.se]将成为此问题的更合适网站。 –

由于MrTux解决方案是增加--delete:

tar uvf --delete /path/name.tar --exclude='*/_files/cache/*' /home/a/