Ok so I’m trying to sync with one of the local boxes on my network, but I don’t want to install another server demon on it. To the rescue – rsync!
But wait…doesn’t rsync require the rsync demon? Not always! Besides, transmitting cleartext doesn’t impress me much. And setting up SSH secrets and auth files for rsyncd goes against my new Ockham’s Razor principle
rsync has come a long way. The version at the moment means that there is only one binary that acts as both the server and client. It also supports the ability to operate over SSH. So, given that it’s 5am and I’m still operating on about 4 hours average sleep, I’m explaining things fine, I’m just not explaining much…and using lots of words to do it! Hows that for anti-Ockhams Razor…
I am currently obsessed with MS Visio though, so I made a sexy little diagram
This REQUIRES both computers have rsync installed…but only as client programs!
Then, to sync the data, the general command form is:
rsync -avzr (source) (destination)
And to use a remote computer via SSH, the path is specified by “-e ssh user@host:/full/path
So if we are using Computer 1 and wish to sync FROM Computer 2:
rsync -avzr -e ssh user1@computer2:/source/path /destination/path
If we were just copying, we could use scp -r, but then we’d have to copy the whole dir every tim!
And the short explanation for the digaram is: Sync with rsync and ssh with an encrypted channel with existing Linux user permissions on the client / server. Finito! Sleep time.

