laravel-backup icon indicating copy to clipboard operation
laravel-backup copied to clipboard

Add Maximum Backups for Amazon S3

Open aaronhuisinga opened this issue 10 years ago • 6 comments

Add a new configuration option for users to be able to choose the maximum amount of backups to store in their Amazon S3 bucket. After the maximum amount of backups are stored, the system will properly delete the amount necessary to trim to the maximum, deleting oldest to newest.

aaronhuisinga avatar Jun 17 '14 03:06 aaronhuisinga

Just a note: I didn't write up any extra tests for this functionality. Everything is running just fine on several of my test environments, but I'd obviously recommend writing tests to be 100% sure before merging.

aaronhuisinga avatar Jun 17 '14 03:06 aaronhuisinga

Coverage Status

Coverage decreased (-4.92%) when pulling b643701d9d9884048b0c24405984989b111f07c0 on HuisingaWS:master into 4c3285d4efa0155e24b1cf78f4956ffb20dd6a8d on schickling:master.

coveralls avatar Jun 17 '14 03:06 coveralls

Hey Aaron,

I'd really love to merge this feature but please also provide some testcases for this!

schickling avatar Jun 17 '14 06:06 schickling

To be honest I'm terrible with phpunit, but I'll try and get some written up over the weekend. I'm also working on adding maximum local backups as well as gzip support. Those will be different pull requests.

aaronhuisinga avatar Jun 26 '14 17:06 aaronhuisinga

Awesome. It's definitely worth it investing some time in learning test driven development! :+1:

I'm really looking forward to merge the other pull requests!

schickling avatar Jun 26 '14 18:06 schickling

Coverage Status

Coverage decreased (-19.16%) when pulling 4f63fc417c07bbe8ed52050c1a86281b2400e4a6 on aaronhuisinga:master into 4c3285d4efa0155e24b1cf78f4956ffb20dd6a8d on schickling:master.

coveralls avatar Oct 02 '14 23:10 coveralls