Number of snapshots to restore are limited to 6

When trying to restore regular snapshot the number of available backups is limited to 6 even though there is way more of the backups on the server.

  • Predrag Dubajic

    Hi Lakewood,

    Looks like the list of backups does indeed has a limit set to 6.
    Unfortunately there's no option to change this from the plugin options and I will report this to the developers so they can sort it out in future releases.

    What we can do now is make a small change in the plugin files in order to show more of the backup files.

    All you need to do is to access your WP files via FTP or cPanel and navigate to /wp-content/plugins/snapshot/views/snapshots/ folder.
    In there find restore.php file and edit it.
    On line 371 you will find this part of the code:
    $data_items = array_slice( $data_items, 0, 6, true );
    Change the value from 6 to the number of backups you want to show, save the changes and that should be it.

    Let us know if you need further assistance with this.

    Best regards,
    Predrag

  • Lakewood

    Thank you for the reply, this indeed does allow for more archives to be selected.

    It would be nice to see this in the plugin so that it automatically shows the number of archives you set to keep.

    I have downloaded some of our older external backups created with Snapshot and imported into the backup archive, they show as an option to restore but when I try to restore from one of the imported backups the restore page just hangs.

    While we are on the topic of Snapshot can the restore page have some kind of progress indicator as once you click restore nothing happens or at least nothing appears to happen.

  • Predrag Dubajic

    Hi Lakewood,

    Are you manually creating all of your backups or you're using scheduled times?
    When you use scheduled times you can set number of backups that will be stored on your server, and in future versions this option should also apply on number of backups to show when restoring it.

    While we are on the topic of Snapshot can the restore page have some kind of progress indicator as once you click restore nothing happens or at least nothing appears to happen.

    Could you elaborate this part a bit more, are you not seeing the restore process like this:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.