1

My problem is similar to the one described in this question. I want to compare a directory to another, and store the differences in a third one. The difference is that in my case the first directory is on a remote server, and --compare-dest does not seem to work with remote directories.

What I tried is

rsync -vain --compare-dest=remote-host:/home/gerry/test/ /home/gerry/test/ /home/gerry/testDiff/

But I 'm getting an error like this:

--compare-dest arg does not exist: remote-host:/home/gerry/test/

Am I doing it wrong or isn't it possible at all?

gerry
  • 111
  • 2
    Cannot you mount the remote host locally (sftp mount) so it is going to be seen as local dir by rsync? More in general you should consider Unison: https://alliance.seas.upenn.edu/~bcpierce/wiki/index.php – lcipriani Feb 10 '17 at 11:52
  • This is interesting but sadly no, sftp mount is not an option in my case. – gerry Feb 10 '17 at 12:43

0 Answers0