The Internet is full with backup scripts, using tar and create a backup file,
but most of them just creates the archive and that’s all. I also wanted to keep
only a limited number of archives in my backup folder. And also the ability to
handle archives from the file system and from other sources such as database
backups.
Configuration
The script has the following configuration options:
DIRECTORIES: list of the directories to back up
BACKUPDIR: location of the backup files
THRESHOLD: date while keep old archives
Scheduling
I placed the script to the /etc/cron.daily directory, but it should work with
other scheduling configuration.