coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.62k stars 1.89k forks source link

[Enhancement]: Cleaning up old backups from remote S3 storage #4361

Open marcinlawnik opened 8 hours ago

marcinlawnik commented 8 hours ago

Request Type

Improvement

Description

I use S3-compatible storage from a provider other than AWS. It does not have a lifecycle/retention policy feature, which leads to it filling up quickly with backups. Unlike AWS, it also does not bill by operations, which means regularly reading and deleting stuff has no additional cost.

Other backup solutions I use (for example laravel-backup from spatie) have a "retention" feature they take care of themselves - i.e. after a successful backup they delete backups older than specified N days from remote storage.

Here's a page from their docs (I actually see they have more complicated/opinionated rules, which seem fine). https://spatie.be/docs/laravel-backup/v8/cleaning-up-old-backups/overview

This could be an option on the backup screen for a resource.

peaklabs-dev commented 1 hour ago

The Enhancement Bounty Issue type is reserved for improvement, service or feature requests that have an attached bounty. Bounties can only be added to issues, not discussions. If you are not adding a bounty, I will convert this issue into a discussion. Please confirm if you intend to add a bounty, or if you'd like this converted to a discussion.