Update existing tests and test actual pruning

This commit is contained in:
Frederik Ring
2025-02-06 17:40:45 +01:00
parent 378217e517
commit 8a853a5b03
27 changed files with 83 additions and 31 deletions

View File

@@ -225,7 +225,7 @@ func (s *script) init() error {
s.storages = append(s.storages, dropboxBackend)
}
if s.c.BackupRetentionDays > 0 && s.c.BackupRetentionPeriod > 0 {
if s.c.BackupRetentionDays > -1 && s.c.BackupRetentionPeriod > 0 {
return errwrap.Wrap(nil, "both BACKUP_RETENTION_DAYS and BACKUP_RETENTION_PERIOD were configured, which are mutually exclusive")
}