by Austin Ginder
Server #1 | WordPress Site | Server #2 |
So let's fix that!
wp option get home
exit
to close SSH connection
Being a developer is not a requirement
The following one liner will run a bash script located: https://run.captaincore.io/migrate on whichever computer or server your working on.
curl https://run.captaincore.io/migrate | bash -s -- --url="$url" --update-urls
The --url
argument needs to be set to a valid WordPress backup.
curl https://run.captaincore.io/migrate | bash -s -- --url="
https://mwp-orion-public.s3.us-west-2.amazonaws.com/backups/14265080/2024-Apr-25_backup_66438a9f031b86.57577476.zip" --update-urls
The --update-urls
flag determines whether or not to update the URLs in the WordPress database.
--update-urls
, the URLs will not be updated--update-urls
, the URLs will be changed to match the new WordPress site/wp-admin/
with SolidBackupscd public
wp db export --add-drop-table
cd ..
zip -r backup.zip public
mv backup.zip public/
Pro tip, read WP-CLI Database Backups with Emojis:
https://anchor.host/wp-cli-database-backups-with-emojis/
Don't download backups!
Instead migrate using a backup URL