• Resolved SeventhQueen

    (@seventhqueen)


    Hi there, I am wondering if you know a way to set a cron to do a restore from a specific backup or other way to schedule a restore. Basically I want to go back in time and reset the site to a desired state.

    Is there an add-on for that?

    Thanks and congrats for the nice plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    It is possible to restore UpdraftPlus backups using shell commands.
    As the backup files are standard ZIP (or GZIP in the case of the database) files, they can be restored using shell unzipping commands:

    File backups (apart from the WP Core backup) should be unzipped into the ‘wp-content’ folder using:
    unzip (file.zip) -d (destination_folder)

    The database backup should be fed back to MySQL with the following command:
    gunzip -dc (file) | mysql (database connection params)

    These can be used in a shell script, and called by a cronjob.

    Thread Starter SeventhQueen

    (@seventhqueen)

    Thanks for the info. Will do some tests and see how it goes.

    All the best

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Schedule automatic restore or cron’ is closed to new replies.