ideas icon indicating copy to clipboard operation
ideas copied to clipboard

DB & Media migration

Open Horttcore opened this issue 8 years ago • 3 comments

Import the database from a remote installation into a local one and replace the url correctly ( as wp-search-replace does it)

ie: wp remote pull staging wp remote push prodcution

the environments would be defined in wp-cli config file.

Media should be handled the same ie compare which media is not used anymore and which media is missing and download them.

tldr; a wp cli alternate to wp migrate db pro plugin

Horttcore avatar Jan 19 '17 11:01 Horttcore

Related #5

danielbachhuber avatar Jan 19 '17 13:01 danielbachhuber

I am using Wordmove and it works fine for me. If it will be used as reference.

https://github.com/welaika/wordmove

miya0001 avatar Feb 11 '17 16:02 miya0001

The DB part can already be done with existing commands by having search-replace export the modified SQL and piping it across aliases:

wp @staging search-replace <old-url> <new-url> --export | wp @production db import -

schlessera avatar Jul 14 '18 07:07 schlessera