Submitted by Michael Burns on Sat, 12/19/2009 - 07:34
There are many ways to back up the important files one has on their system, from bloated software programs to simple scripts. In most cases, a simple script is sufficient. With that in mind, I searched for a simple script and found the following:
I have modified the original script to accomplish the following:
- Allow the user to "force" the creation of a full backup by specifying full on the command line.
- Create a full year-end backup on 31 December.
- Force an incremental backup when a full backup is performed. This is to prevent two full backups from occurring if Sunday is the 1st of the month or is 31 December.
You can download the modified script here. Once downloaded, rename the file to backup.sh.
To install and use the script, you can follow the instructions provided at the Automating backups with tar page. However, where referenced, replace backup.cron with backup.sh.