GFS Cleaner
It is a GFS (Grandfather-Father-Son) backup files cleaner.
Install
Linux x64
sudo wget https://github.com/icebob/gfs-cleaner/releases/download/v0.1.0/gfs-cleaner-0.1.0-linux-amd64 -O /usr/local/bin/gfs-cleaner
sudo chmod +x /usr/local/bin/gfs-cleaner
Usage
Clean old backup files from backup
folder
$ gfs-cleaner clean backup
Default retentions:
- 7 daily backups
- 4 weekly backups
- 12 monthly backups
- 10 yearly backups
Clean old backup files with custom retention values
$ gfs-cleaner clean backup --daily 5 --weekly 2 --monthly 10 --yearly 10
License
gfs-cleaner is available under the MIT license.
Copyright (C) 2019 Icebob