Rotating Folder Backup Script
How do you create folder backup archives and limit the size by rotating old ones out? A common task and there are plenty of solutions. This is more or less the poor man’s solution I’m running from cron.
This script will process each sub folder of a given base directory. If there are modified files it will create a archive tar and possibly clean out old ones. The last 7-days of snapshots and each 1st of the month will be kept.
The script needs the bash shell and works with whitespace in directory- and filenames.