This file contains hidden or 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 | |
| # | |
| # backup.sh – Simple rotation backup script | |
| # | |
| # Creates a compressed archive of SOURCE into TARGET with a timestamp, | |
| # and keeps only the most recent MAX_BACKUPS archives. | |
| # | |
| # Requirements: Bash 4+, cron |