How would I go about rsyncing the difference between two directories to a 3rd directory. For example, if I have the command

rsync -av --progress --stats /hdd1/ /hdd2/

I would like to copy the difference between hdd1 and hdd2 to a 3rd directory, without copying any data to hdd2 (as it is a full hard drive). What's the best way to go about this?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

Maybe the --compare-dest option of rsync could be helpful. I think

rsync -av --progress --stats --compare-dest=/hdd2 /hdd1/ /3rd_dir/

might work.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.