I installed the free version of UpdraftPlus for a customer earlier in the year to see how it performed. I notice in another thread here that it is actually meant to delete old backups once the latest is complete? Unfortunately that doesn’t seem to be happening in this case. Their updraft folder has 4575 files in it 88 of which are zip files in excess of 50MB (they have a lot of images on the site). In the settings, the option to Delete Local Backup is checked. Do you have to purchase the Pro version to get this functionality?
Deleting unneeded files is a standard feature.
Please can you give the following information:
1) UpdraftPlus version in use
2) Remote backup method in use
3) Setting of the expert setting for deleting old files (click on the debug/expert link down the bottom).
After that I will be able to say more.
Sorry – I see that you already answered 3) !
Hi David – speedy reply – thank you!
The Updraft version is 1.5.22 and the backup method is email. Also, the file and database intervals are set to daily with the retain option set to 1.
OK. Please can you also send me a complete log file from the most recent backup? Either use pastebin.com (preferred), or email it to firstname.lastname@example.org.
Ok, not used Pastebin before, but I think you should find it here…
OK. You used Pastebin correctly, but that log was no good – that just recorded that there was nothing to do on that schedule!
1) Please can you go into (e.g. via FTP) the wp-content/updraft directory on your site, and look for the most recent file with a name like “log.*.txt” (where * can be anything), where the file is bigger than 2Kb in size.
2) Also, please can you tell me the names of up to three example files that should have been removed, but haven’t been. Also a screenshot of the listing of those files (e.g. the listing in your FTP client) would be great – especially if you can show the file modification times in it.
Log file from 25/4 was 52kb and is here http://pastebin.com/xtxKyEfM
If I’ve understood correctly, the zip and gz files should be cleaned up. I have these going right back to when the plugin was installed in February. for instance:
(I’ve replaced the company name with xxxxx_xxxxx for privacy sake.)
Screenshot is at file:///D:/develop/cirrus/backup/ftp_screenshot.jpg
Thanks for the help
Thank you… for the screenshot, that’s a link to your local hard drive. Please can you upload the screenshot – e.g. using http://snag.gy/ (similar to Pastebin, but for images instead of text).
When you click on “Restore” in UpdraftPlus, do any of the backup sets corresponding to the left-over files still show?
e.g. for this file:
Is there a backup set showing from 2013-03-21 15:36 ?
One thing you can do is click on the “rescan folder” link inside the “Restore” section. This will get UpdraftPlus to re-recognise those old backup sets. And then after the next backup, it should delete them.
I’m thinking that you perhaps have old files left over from previous versions of UpdraftPlus that perhaps had a bug in this area, and they’re not getting cleaned up now because UpdraftPlus has lost track of the files – clicking on the ‘rescan’ link should help.
Do you have any more recent files, e.g. from within the last week (other than the current backup)?
Another possibility is that those files were not successfully emailed, and were not deleted from local storage for that reason (it only deletes after a successful despatch) – is that possible (i.e. did you receive them)?
Yes all the restores are there and I can indeed see the set for the 21st March.
I hit the rescan link but it hasn’t made any difference. Currently Updraft is using 4.3Gb of space (gulp).
I’m not quite sure what you mean by more recent files. More recent backups you mean? If so, yes, they’re all there up to yesterday.
I’ve asked the site owner whether he is receiving the emails each day and will get back to you when he answers.
Screen capture at http://snag.gy/9qrOx.jpg
I’m surprised that Pastebin didn’t tell me that I couldn’t paste the image in!
Now that I look at the log file from Pastebin, I can see that you’re running an older version of UpdraftPlus, 1.4.48 – the latest is 1.5.22, released just under 3 weeks ago.
However, now that I’ve read through the log file, I can see the problem.
The ‘uploads’ backup is, as you say, 50Mb. The web server is not allowing sufficient time to WordPress to run to despatch a 50Mb email before it times out.
Deleting of old files only happens after they’ve been successfully sent, so in this case, deletion never happens. (Having files file up your disk is less of a problem than having no backups anywhere).
So, therein lies the problem – you either need a web host who allows your processes more time to run, or you need to use a different backup method. The latter is recommended, as even if the email does successfully get out of WordPress, then many/most operators of mail servers won’t allow you to receive one larger than 15 or 20Mb anyway, so it’ll fail at that stage.
P.S. By “different backup method”, I mean one of the other options like Dropbox, Amazon S3, FTP, etc. – not a different plugin. ;-). You’ll have the same problem with any plugin that is trying to email that size of backup.
I see – of course, that makes complete sense – I probably should have worked that out for myself!
Curious that I’m not getting any ‘update available’ warning on the plugin.
I have removed Uploads from the selected files for backup and run a backup, it deleted the backup made earlier 🙂 I will discuss with the site owner their options as to where to back up to if they want the Uploads backed up.
Thank you so much for all your help.
- The topic ‘UpdraftPlus Backup – not deleting old files’ is closed to new replies.