Rsync Over SSH

Took me a while before I got on the ball and starting doing this for syncing my web servers docs to my local machine (for backing up). I had previously used Interarchy for this, but I really prefer to use the command line, where I can schedule it via a cron (should all be 1 line).

rsync -ave ssh username@yourserver.com:/path/to/your/stuff/ /localpath/to/your/stuff/

You can put the local path first - it’ll push files up to the server instead.