Skip to content

Instantly share code, notes, and snippets.

@doggoTalent
doggoTalent / backup.sh
Last active June 17, 2026 21:57
Simple rotation backup script
#!/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