Skip to content

Feature proposal #70

Description

@yulumadavid

I would like to add a functionality to this fantastic script. We've noticed that old databases from customer that went away long ago sta in the 'weekly' and 'daily' directories indefinitely.

Can we sugest to improve the script?

Delete backups older than retention period

find "$BACKUPDIR/daily" -type f -mtime +7 -delete
find "$BACKUPDIR/weekly" -type f -mtime +30 -delete
find "$BACKUPDIR/monthly" -type f -mtime +90 -delete

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions