Need to Clone a wordpress blog?
I needed to move some old WP blog that I’m not using to a legacy location. But whatever your reason is. Here’s now I did it by following mostly this link and this one.
Copy files to the new location
After you got the URL set up for the clone.
In SSH:
# copy all the wp files to the clone location
cp -a blog.originalwp.com/. new.clonewp.com/
Create the Clone WP DB
This IMO took the most work. And you need to set it up in your hosting provider’s dashboard.
More instructions are here
Home Stretch
Last couple steps are super easy
- Update wp-config.php
- Update siteurl or home in the DB table wp_*options
- Login via
new.clonewp.com/wp-admin
and install the plugin Better Search Replace
Use the Better Search Replace plugin to replace the original blog URL with the clone’s URL every where in the DB.