Skip to content

"Error while trying to cleanup old backups"  #4

@MisterC925

Description

@MisterC925

Having successfully run my backups for 6 weeks or so now, I've started getting the following warning when they run.

Last week it was:
Error while trying to cleanup old backups: refusing to delete 100% of backups

This week it was
Error while trying to cleanup old backups: refusing to delete 200% of backups

the log looks like it show the correct info:

...
main.DateTimePrefix("2024-07-07T00:24:56-07:00", "9front")
main.DateTimePrefix("2024-07-07T00:24:56-07:00", "9front"):59 = "2024-07-07_00-24-56 9front"
main.DateTimePrefix("2024-06-27T09:00:09-07:00", "9front")
main.DateTimePrefix("2024-06-27T09:00:09-07:00", "9front"):59 = "2024-06-27_09-00-09 9front"
...
main.Cleanup():206 = {}
main.Email("Failed to cleanup old backups", "Error while trying to cleanup old backups: refusing to delete 200% of backups\n")
main.Email("Failed to cleanup old backups", "Error while trying to cleanup old backups: refusing to delete 200% of backups\n"):44 = null

It looks like it's correctly picking the proper backups to remove but then counting all of them? (twice?) to come up with the 200%

The TOML file looks like:

[Schedule]
Concurrency = 3
StartTime = '8:00 AM'
EndTime = '6:00 AM'
BackupInterval = '7 days'
Tolerance = '1 day'
MaxBackups = 7
MaxAge = '30 days'

Is this a bug or did I break something with my configs?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions