Skip to content

Clear out old Mastodon backups #17

@AetherUnbound

Description

@AetherUnbound

@mpuckett159 graciously set up hourly backups on our Mastodon server. These backups are being retained indefinitely and they do not need to be.

image

From her:

Can we set up moderately complicated logic like hourlies for a day, dailies for a week, weeklies for a month, no more after a month?

I think our best bet is to list all the backups, determine which ones to delete in Python, then issue those delete commands over SSH (rather than trying to do this all in bash). That way we could also write unit tests too 😄

Paired with a DAG which may also cover https://github.com/OrcaCollective/orca-collective-terraform/issues/12, this would help reduce disk space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions