Support

Akeeba Backup for WordPress

#36434 Delete backups older than one year, but keep backups made on first day of month

Posted in ‘Akeeba Backup for WordPress’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

WordPress version
n/a
PHP version
n/a
Akeeba Backup version
n/a

alex.preyer

I'm using two backup setups - a weekly and a daily backup. The backups are uploaded to a cloud storage.

In the quota settings:

- delete Backups older than 31 days (for weekly) and 7 days (for daily)

- keep backups from first day of the month

With this setting, I can go back up to 1 year.

Now my question, I cannot get solved looking here in your docu and knowledge base.

Is it possible to let Akeeba delete backups older than 1 year automatically? Because I'm using the backup age quota option, all other settings, like the count quota, are inactive.

Do you think there is a way to do this?

nicholas
Akeeba Staff
Manager

No, there is no way to do that with Akeeba Backup.

I had thought about that but it appears to be a very rare use case — even though I have a similar use case, for our own site. Unfortunately this meant the market for these additional rules was too small to warrant implementation time :(

The way I implemented it on our site is with Amazon S3 retention policies. All our backups are stored on S3. We use the date based quotas to keep the last 31 days of backup and the backup taken on the 1st of each month. All of our backups are stored on S3. This is where the configuration at the Akeeba Backup end of things stop.

On Amazon S3 I created lifecycle policies for the backup archives. Backups older than 45 days are moved to the Infrequently Accessed tier. After 6 months they move to Glacier. At 12 months they move to Glacier Deep Archive. After 10 years they are deleted. The ten years is actually a legal requirement for us. The tax office needs us to keep information about our sales for 7 years at a minimum with a recommendation for 10 years in case there's a pending legal case that drags on and discovery takes its sweet time.

To the best of my knowledge, the only services which support lifecycle policies are Amazon S3, Microsoft Azure BLOB storage, BackBlaze B2 and Google Storage. You can probably ask your cloud storage provider if they support lifecycle policies and use them to delete backups older than 1 year.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

alex.preyer

Thanks Nicholas. Your're right, this is a very special and rare case.Your suggestion with the retention of the hoster is good and I will go in this direction.

 

Thanks for your time

Alex

nicholas
Akeeba Staff
Manager

You're welcome! Have a great day :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!