chore: replace prune and keep-last flags by BACKUP_RETENTION_DAYS env variable

This commit is contained in:
Jonas Kaninda
2024-10-19 05:25:05 +02:00
parent 713a748ccf
commit 6d50862538
2 changed files with 5 additions and 4 deletions

View File

@@ -30,8 +30,6 @@ func init() {
BackupCmd.PersistentFlags().StringP("storage", "s", "local", "Storage. local or s3")
BackupCmd.PersistentFlags().StringP("path", "P", "", "AWS S3 path without file name. eg: /custom_path or ssh remote path `/home/foo/backup`")
BackupCmd.PersistentFlags().StringP("cron-expression", "", "", "Backup cron expression")
BackupCmd.PersistentFlags().BoolP("prune", "", false, "Delete old backup, default disabled")
BackupCmd.PersistentFlags().IntP("keep-last", "", 7, "Delete files created more than specified days ago, default 7 days")
BackupCmd.PersistentFlags().BoolP("disable-compression", "", false, "Disable backup compression")
}