Sign inSign up

ogulcanaydogan/backup-rotator

By ogulcanaydogan

•Updated 8 months ago

Automated backup rotation with retention policies

Image
0

1.0K

ogulcanaydogan/backup-rotator repository overview

⁠Backup Rotator

Manage backup retention with automatic rotation and cleanup policies.

⁠Quick Start

docker run -v /backups:/backups -e RETENTION_DAYS=30 ogulcanaydogan/backup-rotator

⁠Features

  • Time-based retention (days/weeks/months)
  • Grandfather-father-son rotation scheme
  • S3 and local filesystem support
  • Dry-run mode
  • Notification on cleanup (Slack/email)

⁠Environment Variables

VariableDescriptionDefault
BACKUP_DIRBackup directory/backups
RETENTION_DAYSDays to keep daily backups7
RETENTION_WEEKSWeeks to keep weekly backups4
RETENTION_MONTHSMonths to keep monthly backups6
DRY_RUNPreview without deletingfalse

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:d29179dc9…

Size

56.6 MB

Last updated

8 months ago

docker pull ogulcanaydogan/backup-rotator