All-in-One WP Migration Mega Extension WP CLI Integration

All-in-One WP Migration Mega Extension includes integration with WP-CLI, allowing you to run migrations from the command line. It adds the backup and restores commands which can be run from the CLI.

Backup

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

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

List backup files from Mega
Example: wp ai1wm mega list-backups

OPTIONDESCRIPTIONEXAMPLE
[--folder-path=]List backups in a specific folder. (folder name is specified in the extension settings).wp ai1wm mega list-backups --folder-path=my\ backup/migration
Restore backup

Restore a backup from Mega
Example: wp ai1wm mega restore migration-wp-48170913-095743-931.wpress

OPTIONDESCRIPTIONEXAMPLE
[--folder-path=]Download a backup from a specific folder inside a cloud storage.
(folder name is specified in the extension settings).
wp ai1wm mega restore migration-wp-48270913-995743-939.wpress --folder-path=my\ backup/migration
[--yes]auto-confirm the backup on restorewp ai1wm mega restore migration-wp-48270913-995743-939.wpress --yes

 

Leave A Comment?