All-in-One WP Migration WP CLI Integration

WP-CLI integration is built into All-in-One WordPress Migration, allowing you to run migrations from the command line. It adds backup and restore commands that can be executed via the CLI.

BACKUP

backup
Creates a new backup file.
Example:
wp ai1wm backup

SUBCOMMANDS:
OPTIONDESCRIPTIONEXAMPLE
[--sites]Create a new backup file for WP Multisite (Sub-Sites/Subdomain-Sites).wp ai1wm backup --sites
[--exclude-spam-comments]Creates a backup file without spam comments.wp ai1wm backup --exclude-spam-comments
[--exclude-post-revisions]Creates a backup file without post revisions.wp ai1wm backup --exclude-post-revisions
[--exclude-media]Creates a backup file without media library files.wp ai1wm backup --exclude-media
[--exclude-themes]Creates a backup file without any themes.wp ai1wm backup --exclude-themes
[--exclude-inactive-themes]Creates a backup file without currently inactive themes.wp ai1wm backup --exclude-inactive-themes
[--exclude-muplugins]Creates a backup file without must-use plugins.wp ai1wm backup --exclude-muplugins
[--exclude-plugins]Creates a backup file without plugins.wp ai1wm backup --exclude-plugins
[--exclude-inactive-plugins]Creates a backup file without currently inactive plugins.wp ai1wm backup --exclude-inactive-plugins
[--exclude-cache]Creates a backup file without cache files.wp ai1wm backup --exclude-cache
[--exclude-database]Creates a backup file without the database.wp ai1wm backup --exclude-database
[--exclude-email-replace]Creates a backup file without replacing email domain. wp ai1wm backup --exclude-email-replace
[--replace "find" "replace"]Finds and replaces text in the database. Use --replace flag before each pair for replacement.wp ai1wm backup --replace "wordpress" "WordPress"
SIMULTANEOUS USEAll options be used simultaneously except --list can. Replace option could be used between other options. wp ai1wm backup --exclude-inactive-themes --replace "find" "replace" --exclude-cache --replace "old text" "new text"
Restores a backup. The filename must be provided and must be located in ai1wm-backups directory.wp ai1wm restore
RESTORE

restore
This will restore a backup. A filename must be specified, and it must be located in the ai1wm-backups directory.
Example:
wp ai1wm restore migration-wp-20170913-095743-931.wpress

BACKUP LIST

Backup list – wp ai1wm list-backups

This will return a list of backup files. Using this option will not create a backup and will disregard any other options that have been set alongside it.

 

23 Comments

  1. Mohsin Khan

    Class ‘Ai1wm_Template’ not found in /home1/mercy4all/public_html/reign.ae/wp-content/plugins/all-in-one-wp-migration-unlimited-extension/lib/controller/class-ai1wmue-main-controller.php on line 134

    1. Lesley Arnold

      Hi Mohsin
      I am sorry for the inconvenience.
      Can you make sure that you have the free version activated as a base plugin?
      Best,
      Lesley

    1. Anna Angelova

      Hello,

      Can you please send an e-mail to our support team to

      su*****@se******.com











      with more details about your problem,
      including the path from which you execute the command from the terminal.

      Thank you in advance

  2. Joonas

    Error while backupping or restoring when plugin is installed and activated directly via WP-Cli (wp plugin install all-in-one-wp-migration –activate)
    -> wp ai1wm backup (fails)
    -> wp ai1wm restore filename.wpress (fails)

    “PHP Warning: mkdir(): No such file or directory in wp-content/plugins/all-in -one-wp-migration/functions.php on line 40
    Error: Location is not a directory: wp-content/plugins/all-in-one-wp-migration/storage/5b4cb19f276

    1. Lesley Arnold

      Hi Par
      Please use the restore function. You will need to put the .wpress file in to the backups directory using a file manager, FTP client or similar.
      If you have further questions, please contact support

  3. Jay

    Hi I have installed WP bullet proof security on my site and they are asking me “exclude a particular folder from being backed up” how can I achieve this?

    1. Lesley Arnold

      Hi Jay
      If you are looking for support with your security plugin, please contact the plugin author.
      Thanks
      Lesley

    1. Pim J. Iliev

      Hi Mark,

      One more question regarding this feature, are you planning to use a full Multisite network or subsite migration via WP CLI?

  4. tariq

    Can you please advise that we have to make changes in My sql data base as well while migrating website to another hosting? Basically i have chnaged the hosting from 1and1 to bluehost so what i have to change in wordpress admin,password and Mysql? domains are same but hosting is changed only.

    1. Ugyen Dorji

      Hi Tariq, firstly you need to have a blank wp install and then activate our All-in-one WP Migration. After that please re-import your backup via WP CLI or Web Interface. If you still have problem with WP CLI migration could you please write to us at

      su*****@se******.com











  5. momo-fr

    Hi, I use the unlimited version for a few weeks and today I have an error message trying to activate it:
    Warning: require_once(/home/personnal/dev/wp-content/plugins/all-in-one-wp-migration-unlimited-extension/lib/controller/class-ai1wmue-export-controller.php): failed to open stream: No such file or directory in /home/personnal/dev/wp-content/plugins/all-in-one-wp-migration-unlimited-extension/loader.php on line 43

    Fatal error: require_once(): Failed opening required ‘/home/personnal/dev/wp-content/plugins/all-in-one-wp-migration-unlimited-extension/lib/controller/class-ai1wmue-export-controller.php’ (include_path=’.:/opt/alt/php72/usr/share/pear’) in /home/personnal/dev/wp-content/plugins/all-in-one-wp-migration-unlimited-extension/loader.php on line 43

    Any ideas?
    Regrads.
    Jean

Leave A Comment?