restoring from wp cli?

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #294882
    Jared
    Participant

    We are faced with the issue of restoring large-sized backups – there is a timeout of the script executing because of max_execution_time. Hosting can not increase this parameter and suggested restoring backups using wp cli. But your plugin only supports the creation of backups in the console via wp cli, the restoring of the backups, as I understood from the message found on your site, only in development.
    Here is the message https://updraftplus.com/wp-cli-for-updraftplus/
    Do you have any updates regarding this?

    #294929
    udadmin
    Keymaster

    Hi,

    Restoration ability via WP-CLI was included in the most recent release.

    David

    #295045
    Diana
    Participant

    Please would you let us know where we can find the restoration commands, thanks.

    #295119
    Dee Nutbourne
    Moderator

    Hi,

    The command to restore:

    wp updraftplus restore <nonce> [--components=<components>] --db-decryption-phrase=="test"

    e.g.
    wp updraftplus restore b290ee083e9e --component="db,plugins,themes" --db-decryption-phrase=="test"

    ## OPTIONS
     *<nonce>
     * : A nonce of backup which you would like to restore
     *
     * [--components=<components>]
     * : The components to restore. Multiple component names should separate by comma (,). If you will not pass this argument, UpdraftPlus restore all backup entities which are exist in given backup
     * ---
     * default: all
     * ---
     *
     * [--db-decryption-phrase=<db-decryption-phrase>]
     * : If databse is encypted in the backup, Please give database decryption phrase
     *
     * [--over-write-wp-config=<over-write-wp-config>]
     * : Whether wp-config.php file will be overwritten or not. This option will work if you have installed the "More files" addon.
     *
     * [--incremental-restore-point=<incremental-restore-point>]
     * : Incremental restore point.  This option will work if you have installed the "Support for incremental backups" addon.
     *
     * [--migration=<migration>]
     * : Whether restore is migration or not. If you are restoring another site backup, This options' value will be considered Otherwise ignored. This option will work if you have installed the "Migrator" addon.
     *
     * [--site-id-to-restore=<site-id-to-restore>]
     * : To restore backup to specific site in a Multisite setup. The option value -1 is for restoring all sites. If you are restoring a Multisite backup, This options' value will be considered Otherwise ignored. this option only affects the restoration of the database and uploads - other file entities (such as plugins) in WordPress are shared by the whole network. This option will work if you have installed the "Network / Multisite" addon.
     *
     * [--delete-during-restore=<delete-during-restore>]
     * : Delete a backup archives during the restore process as it proceeds. This is to minimise disk space use, so the restore can support as large a backup as possible.
     *

    We will be updating the wp-cli documentation shortly.

    Best Wishes,
    David N

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘restoring from wp cli?’ is closed to new replies.