When developing sites on my server I mostly use a sub domain of my domain (e.g. newsite.mydomain.com). When the work is finished I create a db & file backup, move the two to the clients server and restore.
Problem: I have to replace all "newsite.mydomain.com" to e.g. "www.myclientsdomain.com"
Same with the installation location => e.g. on my server (multisite) = /sites/newsite and on client server /sites/default
It would be very handy to have an option like "migration string replace" where you could say to replace "newsite.mydomain.com" to "www.myclientsdomain.com" and "/sites/newsite" to "/sites/default".
Some records have a string length like s:20:"newsite.mydomain.com"; that must be changed to s:23:"www.myclientsdomain.com"; but that shouldn't be a big problem I guess.
Hope this suggestion makes a chance
Thanks in advance
Jan
Comments
Comment #1
ronan commentedI try and manipulate the data being exported and imported as little as possible since a bug in that code would cause data loss, so I don't think I'll be implementing this feature.
In not sure where exactly your domain is set in the db, but if they're in the variables table (most likely) you may want to look into setting these in the settings.php to make the sites more portable.