Multisite Import/Export
WPCLI plugin to import and export blogs in a multisite envirnonment.
by mcguffin · github.com/mcguffin/multisite-import-export · website
★ 1stars
22release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/mcguffin/multisite-import-export/releases/download/0.1.1/multisite-import-export.zipDeclares an update source (https://github.com/mcguffin/multisite-import-export/raw/main/.wp-release-info.json), so updates arrive through the plugin's own updater.
From the readme
Multisite Import/Export
WPCLI plugin to import and export blogs in a multisite envirnonment.
Installation
Production
- Head over to releases
- Download 'multisite-import-export.zip'
- Upload and activate it like any other WordPress plugin
- AutoUpdate will run as long as the plugin is active
Development
- cd into your plugin directory
- $ git clone git@github.com:mcguffin/multisite-import-export.git
- $ wp plugin activate --network multisite-import-export
Using Composer
Configuration Constants
The plugin uses passthru
MUIMEXMYSQLDUMPCLI
The mysqldump commad to use for export.
Default: mysqldump -u -p -h
Examples
MUIMEXMYSQLCLI
The mysql commad to use for import.
Default: mysql -u -p -h
Example
WPCLI Commands
Export a blog
Will place 3 files under ../exports/:
- a manifest file in json format
- an sql dump
- the blogs upload dir in a zip file
Import a blog
Will create or update the site unter the domain subdomain.somewhere-else.com.
The blog’s upload directory will be replaced entirely. To keep your previous uploads add the --skipfs parameter
Post authors will be changed to the first user in database who is member of the blog and has the publ
Read the full README on GitHub →