Automate gzip backup cleanup based on dates and retention with gzip-gardener.
102
gzip-gardener is a Dockerized tool designed for automated cleanup of gzip backup files. It ensures your backup directory maintains only the most recent backups based on a specified retention policy.
BACKUP_PATH: Specifies the path inside the container where the backup files are stored.BACKUP_RETENTION: Defines the number of recent backup files to retain.Create a docker-compose.yml File
Create a file with the following content:
version: '3.8'
services:
backup-cleaner:
image: devopsdarkmaster/gzip-gardener:v1.0.0
environment:
BACKUP_PATH: "/backups"
BACKUP_RETENTION: "7"
volumes:
- /path/to/your/local/backups:/backups
docker-compose up -d
Content type
Image
Digest
sha256:da22ef28a…
Size
45.4 MB
Last updated
over 2 years ago
docker pull devopsdarkmaster/gzip-gardener:v1.0.0