Full backup
the script v0.4
the script v0.8
# crontab -l
@daily /root/backup/create_backup.sh
The newest version of the script now includes multiple configuration parameters (at the top of the script).
With these parameters you can change some basic functionality of the script:
- Mail the output or just write it to a file?
- Keep only 1 version or keep a history of several weekly backups, including daily incremental backups?
- Run this script only when a specific ip address is configured on the system (meant for HA-clusters)
The output below is only an example and will varie with the realilty.
# cat /root/.rsync/excludes
/dev /lost+found /media /mnt /proc /srv /sys /tmp
# tree /root/backup/
/root/backup
|-- create_backup.sh
`-- logs
|-- 20060306
|-- 20060307
|-- 20060308
`-- ...
# tree /backup/
/backup
|-- latest_daily -> daily/20060308
|-- latest_weekly -> weekly/20060304
|-- daily
| |-- 20060305
| |-- 20060306
| |-- 20060307
| `-- 20060308
`-- weekly
|-- 20060218
|-- 20060225
`-- 20060304