Skip to content

A tool to migrate Wordpress sites between WP Multisite instances

License

Notifications You must be signed in to change notification settings

christopher-b/wp-migrate

Repository files navigation

WP Migrate

A tool to migrate WP sites between WP Multisite instances

NOTE: This tool was built to support Wordpress migrations at OCAD University. It's being shared here in the event that someone finds it useful, but in it's current form it makes a lot of assumptions about the enviroment in which it run, and is not suited for general use without some modifications.

Installation

  • Download wp-cli (https://wp-cli.org/) and place wp-cli.phar in ./bin
  • bundle install
  • cp lib/wp/config-example.rb lib/wp/config.rb
  • cp wp-cli.local.yml.example wp-cli.local.yml
  • Edit lib/wp/config.rb and wp-cli.local.yml.example

Usage

This tool assumes you have wp-cli aliases defined and accessible to wp-cli (for example, in wp-cli.local.yml). It will use aliases named @wpmu-old and @wpmu-new. It also assumes you have ssh access to both servers.

bundle exec exe/wp-migrate migrate [old site slug] [new admin email address]

License

The gem is available as open source under the terms of the MIT License.

About

A tool to migrate Wordpress sites between WP Multisite instances

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published