This script can be used to backup local directories over SSH to a remote machine. It uses rsync’s --link-dest feature to avoid storing copies of files that have not changed between two snapshots.

View in Github