Delete older, manual backups
-
I have an app that I do not include into automatic backups, because it is too big and causes the daily server backup to fail regularly. So, I usually update it whenever there is an update to the app manually.
However, how do I delete older backups for this application? They don't adhere to the backup rules I set globally, so "Cleanup Backups" doesn't work. I cannot delete these in the app settings either. I even tried to manually include these into the auomated backup because I assumed "Cleanup Backups" would work only then for this app, but this didn't work either.How can I remove these unused backups as they take a lot of paid space with the backup provider?
-
If automatic backups are disabled, how were the older backups created?It could be that Cloudron has lost track of those backups for some reason. You can just delete them directly in the remote storage.In the backup cleaner logs, Backups -> Clean Backups -> Logs, it will tell you why those backups are kept . There should be some log message like "keepReason".
edit: don't mind me, title says backups were made manually
-
@robi said in Delete older, manual backups:
Have you tried to temporarily add it back to backups and run a cleanup before an actual backup runs?
Yes, I have.
@girish If I delete the backups in the remote storage, will this delete the list entry in the app settings as well? Or just the actual backup?
-
@ekevu123 yes, the backup cleaner has code to detect that remote backup files disappeared and will remove it from the internal database.
-
-
-
I investigated this a little further and can see that none of my apps fully adheres to the backup schedule I set, which is 2 daily, 4 weekly (I run the automated backup once per day plus additional backups that I might manually initiate when I run an update, for example).
Here is an overview over some apps:
App1: has daily backups since 1st December (when I installed it first) without any interruption)
App2: has 24th, 25th, 26th November, then 1st, 2nd Dec, then everything since 8th Dec
App3: same as 2, but without the 26th November
App4: 22nd, 24th, 25th, 26th, 29th Nov., 1st, 2nd, 4th, and everything since 7th Dec.
etc.I believe that means that none of my apps adheres to the schedule? I guess instead of going through every single app to delete backups manually, I would probably create a new object storage bucket for backup and delete the other one. But that also means I would probably need to do that once per month or so as the problem seems to be quite big.
I have another, smaller cloudron instance where I have the schedule "1 week" and I went through all apps there to check. Out of 6 apps running there, I could identify 3 backups that where older than 1 week, so I assume the problem happens there as well, but to a lesser extent.
-
@ekevu123 said in Delete older, manual backups:
I could identify 3 backups that where older than 1 week
As per https://docs.cloudron.io/backups/#retention-policy :
An App backup that was created right before an app updates is also marked as special and persisted for 3 weeks. The rationale is that sometimes while the app itself is working fine, some errors/bugs only get noticed after a couple of weeks.
That could explain it.