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

Add Dokku postgres backup file pruner #1

Open
philbudne opened this issue Aug 7, 2024 · 1 comment
Open

Add Dokku postgres backup file pruner #1

philbudne opened this issue Aug 7, 2024 · 1 comment
Assignees

Comments

@philbudne
Copy link
Collaborator

I've written most of a program that uses the boto3 S3 API (the lingua franca of the cloud storage world?) to inventory a bucket containing postgres backups, and determine which should be kept.

The only part remaining to be written is deleting the objects.
For S3, if bucket versioning is enabled, we may have to provide the VersionId for each object?

The API includes a bulk delete call:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/delete_objects.html

@philbudne philbudne self-assigned this Aug 7, 2024
@philbudne
Copy link
Collaborator Author

Code checked in to https://github.com/mediacloud/system-dev-ops/tree/main/postgres/prune-backups
Need to make rss-fetcher and web-search projects install script and cron.d files?

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

No branches or pull requests

1 participant