Skip to content

Instantly share code, notes, and snippets.

@anibalardid
Last active September 28, 2021 01:58
Show Gist options
  • Save anibalardid/ec5ddc14d3fb1e43abf1983536ad68e5 to your computer and use it in GitHub Desktop.
Save anibalardid/ec5ddc14d3fb1e43abf1983536ad68e5 to your computer and use it in GitHub Desktop.
all in one wp migration - cli #WordPress #ai1wm #backups

https://help.servmask.com/knowledgebase/all-in-one-wp-migration-unlimited-extension-wp-cli-integration/

restore:

wp ai1wm list-backups

wp ai1wm restore <.wpress backup file>

wp rewrite flush

wp rewrite flush

backup with ignores:

wp ai1wm backup --exclude-post-revisions exclude-cache 

Do the backup Adjust the settings for your own need, this here makes a backup of the database only. I suggest using rsync to sync media files.

wp ai1wm backup --exclude-media --exclude-themes --exclude-inactive-themes --exclude-muplugins --exclude-plugins --exclude-inactive-plugins --exclude-cache

RSync

rsync -avz origen destino   

rsync -avz dev-aec:/var/www/dev/wp-content/ /var/www/aec.local/wp-content/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment