Incremental backup with rsync
We all living in data age, and data integrity is very important. Usually when you loose data, you loose more than just money.
Yesterday i have issue with broken RAID0 massive. People who own that server store all data on non-redundant massive and didn’t has any backups. They ask me to restore anything from hard drives. Well i had restore a one important database, but all other data (about 120G) was lost. So even if you have redundant arrays, you need to do backups.
Below you can find some useful shell script.
With this script you can do daily incremental backups. Script use rsync and store one week of actual data with automatic rotation. I have found this script somewhere (thanks to the author), but have made some modifications. There is a lot of comments inside, but if you have some questions, you can ask me.
You can download script here