Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear out old Mastodon backups #17

Open
AetherUnbound opened this issue Nov 25, 2022 · 1 comment
Open

Clear out old Mastodon backups #17

AetherUnbound opened this issue Nov 25, 2022 · 1 comment

Comments

@AetherUnbound
Copy link
Contributor

@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.

@AetherUnbound
Copy link
Contributor Author

I misunderstood this, I don't think the backups themselves actually exist on the server, but rather in our Digital Ocean Space. We'll just need to iterate through that and clear them out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant