All-in-one WordPress Migration includes integration with WP-CLI, allowing you to run migrations from the command line. It adds the backup and restore commands which can be run from the CLI.
Creates a new backup file.
wp ai1wm backup
|[--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 USE||All 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|
Restores a backup. The filename must be provided and must be located in ai1wm-backups directory.
wp ai1wm restore migration-wp-20170913-095743-931.wpress
Backup list – wp ai1wm list-backups
Get a list of backup files, using this option will not create a backup and will disregard any of other options set along with it.