Rsync Backup Script


Rsync syncs all our desired files and folders and saves it to a folder with the date that the backup was taken. The connection is secured by a safe SSH tunnel so the transfer is protected. The script also does a mysqldump with all the databases and saves it to a compressed file that’s named to the date of the backup. The best thing about it is that it makes incremental backups, so if the server should go down – or if some nasty things happen and a backup is made with those nasty changes, we can still go back to the day before and restore. It took us a while to get it running perfectly, but here is the result of the script, feel free to use it!



Rsync options:



Leave a Reply

Notify of