All-in-One WP Migration Amazon Glacier Extension WP CLI Integration

All-in-One WP Migration Amazon Glacier Extension WP CLI Integration

The All-in-One WP Migration URL Extension integrates with WP-CLI, allowing you to run migrations from the command line. It adds backup and restore commands to the CLI.

Backup

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

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

List backups

List backup files from Amazon Glacier.
Example: wp ai1wm glacier list-backups.

OPTIONDESCRIPTIONEXAMPLE
glacier list-backupsList backups in a specific folder.wp ai1wm glacier list-backups

Restore backup

Restore a backup from Amazon Glacier.
Example: wp ai1wm glacier restore migration-wp-00970913-895743-100.wpress.

OPTIONDESCRIPTIONEXAMPLE
Download a backup from a specific file name inside a Vault.wp ai1wm glacier restore migration-wp-00970913-895743-100.wpress
[--yes]Auto-confirm the backup on restore.wp ai1wm glacier restore migration-wp-00970913-895743-100.wpress --yes

Configure your backup plans

Note ⇒You need to run both of the commands:

Every Hour
The first command creates a scheduled cronjob for backup: wp cron event schedule ai1wmre_glacier_hourly_export now hourly.
The second one updates our extension settings : wp option update ai1wmre_glacier_cron ‘[“hourly”]’ –format=json.

Every Day
The first command creates a scheduled cronjob for backup: wp cron event schedule ai1wmre_glacier_daily_export now daily.
The second one updates our extension settings : wp option update ai1wmre_glacier_cron ‘[“daily”]’ –format=json.

Every Week
The first command creates a scheduled cronjob for backup: wp cron event schedule ai1wmre_glacier_weekly_export now weekly.
The second one updates our extension settings :wp option update ai1wmre_glacier_cron ‘[“weekly”]’ –format=json.

Every Month
The first command creates a scheduled cronjob for backup: wp cron event schedule ai1wmre_glacier_monthly_export now monthly.
The second one updates our extension settings :wp option update ai1wmre_glacier_cron ‘[“monthly”]’ –format=json.

 

Leave A Comment?