• Home
  • About
    • JohnHo.ca photo

      JohnHo.ca

      data science, functional fitness, aerial yoga

      connect with me!

    • Email
    • GitHub
    • Instagram
    • LinkedIn
    • Mixcloud
  • Now Page

Cloning a Wordpress Installation

09 Mar 2018

Reading time ~1 minute

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

  1. Update wp-config.php
  2. Update siteurl or home in the DB table wp_*options
  3. 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.


wordpressmysql Like Tweet +1