This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make backups and clean up old ones using the grandfather-father-son principle | |
# | |
# Keeps one backup per four weeks ( roughly one per month ) for a year | |
# per week for four weeks | |
# per day for one week | |
# | |
# DRYRUN="yes" BACKUP_CONTEXT="/home/user" backup.sh BACKUP_SRC BACKUP_DEST | |
# | |
# DRYRUN: when set nothing is actually done, useful for testing |
OlderNewer