WordPress.org

Ready to get started?Download WordPress

Forums

UpdraftPlus Backup and Restoration for WordPress
[resolved] UpdraftPlus Backup - not deleting old files (20 posts)

  1. NFWRo
    Member
    Posted 1 year ago #

    Hi there
    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?

    Thanks

    http://wordpress.org/extend/plugins/updraftplus/

  2. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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.

    David

  3. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry - I see that you already answered 3) !

  4. NFWRo
    Member
    Posted 1 year ago #

    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.

    Thanks again
    Rowena

  5. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    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 contact@updraftplus.com.

    Many thanks,
    David

  6. NFWRo
    Member
    Posted 1 year ago #

    Ok, not used Pastebin before, but I think you should find it here...
    http://pastebin.com/jmhFjP70

    Thanks
    Rowena

  7. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

    David

  8. NFWRo
    Member
    Posted 1 year ago #

    Hi David
    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:
    backup_2013-02-19-1533_xxxxx_xxxxx_ea9938768038-others.zip
    backup_2013-03-21-1536_xxxxx_xxxxx_abad36930f6d-uploads.zip
    backup_2013-02-20-1550_xxxxx_xxxxx_0e7a9775ccdb-db-table-shop_option.table.gz

    (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
    Rowena

  9. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rowena,

    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).

    David

  10. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rowena,

    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:
    backup_2013-03-21-1536_xxxxx_xxxxx_abad36930f6d-uploads.zip

    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)?

    David

  11. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    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)?

  12. NFWRo
    Member
    Posted 1 year ago #

    Hi
    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.

    Thanks again

  13. NFWRo
    Member
    Posted 1 year ago #

    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!

  14. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Rowena,

    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.

    David

  15. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  16. NFWRo
    Member
    Posted 1 year ago #

    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.

  17. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    You are welcome!

    > Curious that I'm not getting any 'update available' warning on the plugin.

    This part is handled by WordPress core (not by individual plugins themselves). So this isn't an UpdraftPLus issue.

    David

  18. NFWRo
    Member
    Posted 1 year ago #

    Actually, just looking back at the conversation about the version, in my WordPress Plugins page, it says I am running 1.5.22, so something out of kilter there. Should I just download the 1.5.22 again and upload that to ensure that the version is good?

  19. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    It wouldn't hurt.

  20. NFWRo
    Member
    Posted 1 year ago #

    Thanks again David for such excellent support.
    Rowena

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic