fdocr / martilla

Easy to configure DB backup tool for simple everyday use on UNIX based systems
https://visualcosita.com/martilla-tool-for-db-backups/
MIT License
10 stars 4 forks source link

S3 Storage enforce_retention! corrections #19

Closed fdocr closed 4 years ago

fdocr commented 4 years ago

This PR is intended to fix #18

enforce_retention! for the S3 Storage component will now filter objects from the bucket returned by the AWS S3 request to match only the backup files generated by Martilla. All other objects from the S3 bucket should be safe from retention enforcement (unless they're named similarly and located next to other backups).

Changes were also introduced in order to fix #17 too. The root folder should work as a valid location to store backups.

Valid storage options are the following: