Martlark / pg_dump

Docker image for scheduled dump of PostGres SQL files with automatic retention and removal
Apache License 2.0
22 stars 14 forks source link

Is there any way how to set some TTL on S3 bucket? #19

Open JaLe29 opened 8 months ago

JaLe29 commented 8 months ago

Is there any way how to set some TTL on S3 bucket?

In short: I would like to store dumps only for one day.

Solution: Write some cron for clear old files.

Better: Use some flag via ENV variable

Martlark commented 8 months ago

An interesting idea. But I think your S3 policy should be run by a more centralized solution. S3 is really about long term survival.