Update files from another folder

(Note: @Nige_S posted their reply while I was typing mine; sorry for the double dose of rsync advocacy!)

rsync is an amazing tool; you can do some really cool stuff with it. I use it in MacroBackerUpper, as one example. It's also incredibly flexible in that it can work both locally and remotely.

So if you have a server you connect to, and you set up passwordless ssh access, you can do this:

rsync /path/to/local/folder/ server.name:/path/to/folder

As it only copies changed files, it's incredibly speedy. I use a variation of this to make a local "Time Machine like" backup of all our web files:

https://robservatory.com/create-time-machine-like-backups-via-rsync/

One note: If you want to use rsync, I recommend using Homebrew to install a newer version. The bundled rsync (version 2.6.9) is the final version licensed on the Gnu General Public License v2 (Apple won't ship apps that use Gnu GPL v3), and as such, was last updated in 2006. The current version is 3.4.2, and is updated regularly.

-rob.

1 Like