S3 back-up auto-delete of old files?

Does Discourse also send a deletion request to S3 to keep the number of back-ups limited to the number requested, or does this have to be done manually?

My site is keeping my back-ups to the last 5, but this isn’t reflected on S3 (they are just building up) and I’m wondering if I’ve messed up the permissions on Amazon …

One solution may be to use object expiration on Amazon, as described here:

https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions

1 Like