Git-style incremental backup with rsync

view full story

http://serverfault.com – I'm trying to setup a backup script on Ubuntu. Every day I want to copy my local source directory to a backup directory on a remote server uniquely named with the date. (e.g., backup-jan1/, backup-jan2/, etc) It should store a mirror of the earliest state and use difference files to recreate the new backup points. This is pretty simple with rsync. I've already setup a script that will make the backup, name the backup directory with the current day, and make a symlink to the most recent backup (IP has been edited): date=`date "+%m%d"` rsync -ave ssh /srv [email protected]:/backup/backup-$date/ (HowTos)