使用–compare-dest.
从手册页:
–compare-dest=DIR –
This option instructs rsync to use DIR on the destination machine as an additional hierarchy to compare destination files against doing transfers (if the files are missing in the destination directory). If a file is found in DIR that is identical to the sender’s file,the file will NOT be transferred to the destination directory. This is useful for creating a sparse backup of just files that have changed from an earlier backup.
首先使用–dry-run检查语法
rsync -aHxv --progress --dry-run --compare-dest=folder2/ folder1/ folder3/
一旦你对输出感到满意:
rsync -aHxv --progress --compare-dest=folder2/ folder1/ folder3/
这个link有一个很好的解释–compare-dest范围.