Created
June 7, 2021 13:30
-
-
Save nunomorgadinho/108c74d8a4ca54b670e0c47366e60d7d to your computer and use it in GitHub Desktop.
Export and import a subsite into multisite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install 10up/mu-migration | |
wp package install 10up/mu-migration | |
# Command to export | |
wp mu-migration export all subsite.zip --blog_id=1 | |
# Command to import | |
wp mu-migration import all subsite.zip --new_url=3316b88deb.nxcli.net/dk-0037 --mysql-single-transaction | |
# Additional steps | |
#a. copy uploads folder | |
#b. go into WooCommerce -> Tools -> Verify database to make sure sessions tables were created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment