- Think about your desired service body tree. If collapsing into a zone, make those changes ahead of time on the target.
- Always take backups.
- There might some additional actions to take of, look at the console messages.
- If you have some custom fields, you will need to add them in the target database first before exporting the dump.
- Once you are done with your exported merged results, open the .sql file and rename
na_
to something else. This will allow you to have side-by-side migration capabilities. You can then modify theconfig.inc.php
file setting$dbPrefix
and swap in the new prefix when you are ready. If you need to rollback you can then switch to the older one.
- To get this going, stand up the database docker container and sample BMLT server for testing by running:
docker-compose up
-
Take a mysql dump from your source and target mysql dbs.
-
Import the two dumps as two separate DBs on the docker container.
-
Take a snapshot of the container, in case you need to restart this.
docker commit [container-id] [image:tag]
-
Fill in the variables in
functions.php
. -
Run
php bootstrap.php
, this will generate clean.php which will run each time you re-runrun.php
, in case you need to start over. -
Run
php run.php
.