UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › restoring from wp cli?
- This topic has 3 replies, 4 voices, and was last updated 6 years, 3 months ago by Dee Nutbourne.
-
AuthorPosts
-
July 23, 2018 at 2:34 pm #294882JaredParticipant
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?July 23, 2018 at 5:44 pm #294929udadminKeymasterHi,
Restoration ability via WP-CLI was included in the most recent release.
David
July 24, 2018 at 7:46 am #295045DianaParticipantPlease would you let us know where we can find the restoration commands, thanks.
July 24, 2018 at 2:44 pm #295119Dee NutbourneModeratorHi,
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 -
AuthorPosts
- The topic ‘restoring from wp cli?’ is closed to new replies.