WordPress.org

Ready to get started?Download WordPress

Forums

UpdraftPlus Backup and Restoration for WordPress
[resolved] Restore resets backup list, excludes recent backups (6 posts)

  1. ldekay
    Member
    Posted 4 months ago #

    Today I had my first opportunity to restore a database from backup. It worked well, but it also lost track of backup files made after the restored file. The problem I was having required several restorations, and each time my only available restore files were ones made before the most recent restoration file was made, so I was progressively presented with earlier and earlier backups, but could not get back to the newer backups. I even tried the RESCAN link but got the same results.

    When I checked the backup folder using FTP I saw that the more recent backups were there in the folder. In fact, though the plugin indicated that I could restore from prior to the 7 backups I have it set to keep, the actual files from before the retained 7 backups were not in the backup folder, and presumably would have spawned an error if I tried to restore one of them.

    This looks and smells like a bug that should probably be checked out.

    https://wordpress.org/plugins/updraftplus/

  2. David Anderson
    Member
    Plugin Author

    Posted 4 months ago #

    Hi ldekay,

    Thanks for the report...

    This is not unexpected behaviour... a 'restore' operation is intended to restore 100% of the state of your site - which includes everything in the database, which includes the list of backups that UD is aware of.

    A future release should include the facility to re-scan remote storage, and to import backup sets that UD is not aware of. But this is not a current feature at the moment. You can manually import other backup sets by drag/drop using the link in the 'Restore' section.

    Best wishes,
    David

  3. ldekay
    Member
    Posted 4 months ago #

    The backups are in the folder that the plugin has been pointing and writing to all along. And that folder is in the same root as the WP installation. So it seems odd that the location is considered "remote storage" and that a rescan can't identify all the backups that the plugin wrote into that location.

    Would it make a difference and allow the plugin to find the backups if they were stored in a folder within the wp-contents folder, that is, actually a part of the WP install?

  4. David Anderson
    Member
    Plugin Author

    Posted 4 months ago #

    Hi ldekay,

    I misunderstood. You're saying the backups are in wp-content/updraft, but are not picked up by pressing 'rescan' ? They should be - are you really sure? The only time this was reported before, they in fact were picked up and the reporter had got their time zone confused and had overlooked them.

    David

  5. ldekay
    Member
    Posted 4 months ago #

    Hi David,

    What I'm saying is that the backkups are written to a folder at the public_html level, the same level where WP is installed. It just seems odd that the plugin can FTP access that location for writing but can't read what it has written there.

    I assume that the way the restored and newer versions are lost each time a restore is done indicates that the backups are also stored in the database. Restoring a database that doesn't yet include its own backup would account for the regression I was seeing.

    My question was: could the plugin read the backups if they were stored in the wp-content folder? I think your answer indicates they should be read, so why don't you recommend or build that storage location into the plugin?

  6. David Anderson
    Member
    Plugin Author

    Posted 4 months ago #

    Hi ldekay,

    If UD is creating backups at the site root, then something's not right. By default it uses wp-content/updraft. Check in your 'Expert' settings at the bottom of the UD settings page. Note too that if your backups have a different setting to your current site setting, then that might be confusing things.

    Best wishes,
    David

Reply

You must log in to post.

About this Plugin

About this Topic