Increase retained backups on Amazon S3

Amgeek

Member
Nov 7, 2013
22
1
3
cPanel Access Level
Website Owner
I would like to increase the number of backups retained on Amazon S3

Currently my Cpanel backup is set to retain 5. S3 also retains 5.

Can I increase the number retained on S3 without increasing the number kept on my server?

If so, how? Is that done on Cpanel or S3?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Hello,


If you've selected "Retain backups in the default backup directory." at WHM>>Backup>>Configuration then, unfortunately, there is no method to retain a different number of backups remotely within cPanel. This does not mean that there isn't a method to retain another copy using the S3 server though the configuration of any system you set up to achieve this would need to be done on the s3 side.

There is a feature request for this that I would encourage you to vote for here:
Ability to control retention for S3 Backup Destination

Thank you,
 

Amgeek

Member
Nov 7, 2013
22
1
3
cPanel Access Level
Website Owner
Thanks for the prompt reply and heads up on the feature request. I am #84.

I have not selected to "retain backups in the default backup directory", and yet, the number of backups being retained there is the same number that is saved on Amazon. So, the number saved at S3 seems to be controlled by my Cpanel backup settings.

Oh wait!

I think I found the answer!!

It looks like the retained backups showing in my /backups directory are just empty folder!!!

The real backups have been moved to S3 !!!!

So "Retraining" lots of backups won't actually use much space on the server (empty folders) so make lots!!!!!

Then, using Filezilla Pro, you can FTP your backups from S3 and/or delete them as and when you want!!!!!!

If I am mistaken I will be back and correct or edit this !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Amgeek ;)
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Hello,


The retention settings, in that case, can be modified to retain the number of backups you'd like to keep on the remote server without affecting your web server.

You shouldn't actually need to log in and delete the backups, the retention settings through the backup configuration should prune the backups automatically, though if you don't want them deleted you can do this on your own.


Thank you,
 

Amgeek

Member
Nov 7, 2013
22
1
3
cPanel Access Level
Website Owner
Yes, exactly. Not "retaining backups in the default backup directory" but growing empty folders there up to the specified "retention" number.
Each, so far, is quickly transferred to and retained on Amazon S3 (up to the number of "retention"?) leaving only empty folders behind on my server.

Pretty sure that S3 will start pruning old ones once or if the "retention" number is reached. Have not proven that yet but am guessing.