(10-10-2018, 01:30 AM)dsmarter Wrote: Hey all,
I have been having issues recently where my server will hit 100% disk space and sites stop working and what not.
it will not delete the previous backups. I then have to ssh into it and delete the backups. Is this a new issue or is there a setting I can change to delete these? Alternatively, is there a script/cron job that any one has to delete all except for today and yesterday's backups?
I copy them off the server to AWS S3 daily although the time doesn't always line up so I'd like to keep the current day+1 just to be safe.
Have you tried changing the settings in ADMIN > MODULE ADMIN > BACKUP CONFIG?
There are four values that you can set:
Daily Backups
Disk Backups
Purge Backups
Purge Date
I assume that Daily Backups is set to True?
What value is Purge Backups set to? It needs to be set to True, otherwise auto-delete will not happen.
Also, you should be able to control how long backups are kept for by changing Purge Date. So in your case, have you tried changing Purge Date to 1 or 2 to see if backups older than a couple of days are automatically deleted?
Keith.