Clone & Deploy Blog (Same Domain) From One Host To Another

Have you attempted to clone your blog onto another host? Have you tried backing up and transferring your WordPress blog to another host, let alone ensuring all your categories, posts, comments, permalink structure, themes, customizations and plugins are intact and activated? Was it easy and painless? <insert laugh track> Exactly! It’s painful, isn’t it?

Wil Mattos & Jason Fladlien just released a software script – WP Twin (aff) – that enables you to clone and deploy your WordPress blog and more to a new hosting environment in under a minute. Since I had plans to move several blogs to Hostgator from MediaTemple and Hostmonster, this was an opportunity to take WPTwin through its paces, and boy did it perform well. Talk about saving me time and my sanity!

After cloning and deploying my first blog easily, I knew you’d want to see it in action in step-by-step sequence, so I’ve included my process below with screenshots and annotations.

The process below details the steps I took to transfer an existing blog to another host service, then pointing the same domain to the new host after the clone deployment. Let’s jump in…

 

 

Objective: Clone Target Blog From One Host To Another

wpid2566-media_1285799201885.png

In this scenario, I’m selecting to transfer my mom-in-law’s blog – FingerprintMinistries.com – from MediaTemple.net over to Hostgator.com.

 

 

Upload ‘wptwin.php’ To Existing Blog’s Root Directory

wpid2577-media_1285803119430.png

First, we need to clone the existing blog. Either with FTP software or using your host’s File Manager (which we’re showing above), upload the ‘wptwin.php’ file.

 

 

Choose And Upload ‘wptwin.php’ File From Desktop

wpid2578-media_1285803265455.png

 

 

View: "wptwin.php" Has Now Been Uploaded

wpid2579-media_1285803398206.png

With the ‘wptwin.php’ file uploaded, let’s open a new browser window, and open that file.

 

 

Execute "wptwin.php"

wpid2580-media_1285803518795.png

I’ve intentionally blurred the domain above, to remind you to execute ‘wptwin.php’ on your own target domain, not the one I’m working on :-)

 

 

Click "Click here" Link To Begin Cloning

wpid2581-media_1285803782192.png

 

 

Input Blog Credentials (If This Step Is Requested). Click "Log In" Button.

wpid2582-media_1285803915830.png

 

 

Press "Click to Clone this Site" Button To Begin Cloning

wpid2583-media_1285804088657.png

If you want to include non-WordPress folders you’ve created in your domain’s root directory, eg. a "media" folder of images, audio and video, that’s not part of the default set of WordPress folder structure, then checkbox #1′s "Include Non-WordPress Folder" option.

Otherwise, leave it alone, and click the "Click to Clone this Site" button now.

 

 

Right-Click And Download Clone Link To Your Desktop

wpid2584-media_1285804330429.png

 

 

Click "Delete This Clone" Button

wpid2585-media_1285804539106.png

Since you’ve downloaded your cloned file, it’s time to delete the clone file off your host account for security. Simply click the "Delete This Clone" button to execute this action.

 

 

Login To HostGator (Or New Host’s) Control Panel

wpid2567-media_1285799283347.png

Our next step is to execute a fresh installation of WordPress on our desired destination (domain and/or directory) using cPanel (using Fantastico). However, we’ll need to setup a new add-on domain at our new host destination first.

Since my new host destination is at Hostgator.com, I’ll set up the add-on domain here. Let’s proceed…

Login with the address and credentials you’ve setup at your host account.

Next, we’ll locate the Addon Domains icon…

 

 

Click ‘Addon Domains’ Icon

wpid2568-media_1285799344227.png

 

 

Create A New Add-on Domain

wpid2569-media_1285799426009.png

 

 

Add-On Domain Created

wpid2570-media_1285799804121.png

Now that your new add-on domain has been created, the next step is to install a fresh installation of WordPress in this new addon domain.

 

 

Go Back To Control Panel

wpid2571-media_1285800115271.png

If you’re using a Hostgator account, click the ‘Home’ icon to return to your control panel.

 

 

Locate And Click "Fantastico De Luxe" Icon

wpid2588-media_1285805601743.png

 

 

Click "WordPress" Option

wpid2589-media_1285805680043.png

 

 

Click "New Installation" Link

wpid2590-media_1285805738093.png

 

 

Fill In Necessary Settings. Click "Install WordPress" Button.

wpid2591-media_1285805909407.png

 

 

Click "Finish Installation" Button

wpid2592-media_1285806039812.png

 

 

Click "Back to WordPress overview" OR Send Installation Details Via Email

wpid2593-media_1285806151243.png

 

 

Click "Control Panel"

wpid2594-media_1285806359885.png

Now that we’ve installed WordPress, it’s time to upload the ‘wptwindeploy.php’ file to this account. Let’s locate the "File Manager".

 

 

Click "File Manager" Icon

wpid2572-media_1285800280321.png

This tutorial assumes your understanding of how to setup your credentials in your FTP software, for uploading files. If you have this understanding, set up your new FTP account now, then upload the ‘wptwindeploy.php’ file into your new domain or destination’s root folder.

If you don’t, the next few steps will show you how to upload the ‘wptwindeploy.php’ file to your new domain/destination using your host account’s ‘File Manager’.

 

 

Select Target Domain In "File Manager Directory". Click "Go".

wpid2573-media_1285800345523.png

 

 

Click "Upload" Icon

wpid2574-media_1285800464608.png

We’re about to upload the ‘wptwindeploy.php’ file, so let’s click the ‘Upload’ icon for the Upload Box.

 

 

Click "Choose File" Button

wpid2575-media_1285802614830.png

 

 

Select And Upload "wptwindeploy.php"

wpid2576-media_1285802702528.png

 

 

Click Next "Choose File" Button To Also Upload Cloned File

wpid2586-media_1285805066181.png

With the ‘wptwindeploy.php’ file uploaded, click the next "Choose File" button to upload the cloned file you had downloaded previously to your desktop.

 

 

View: Cloned File Upload In Progress

wpid2596-media_1285806934480.png

After your clone file upload is complete, let’s open a new browser window, and execute that file.

 

 

Type In & Execute Path To ‘wptwindeploy.php’ In New Browser Window

wpid2587-media_1285805174557.png

 

 

Input Your Registration Email. Click "Validate Now" Button.

wpid2595-media_1285806585857.png

 

 

Click "Deploy Clone" Button

wpid2597-media_1285807209719.png

There’s a special note by the WPTwin developers below this screen capture I recommend you read. It states:

"When you deploy your clone, the username and password will be exactly the same as it is on the source site. The only settings that will not be overridden on the clone are the Site Name and Descripton (which you define in Fantastico during the installation). You can change your password after deploying the clone by accessing the WordPress Admin interface."

In a nutshell, everything from your old blog remains the same, except for the new Site Name and Description, which you created in your new WordPress installation. Naturally, you can change passwords of this new clone in your WordPress Dashboard.

 

 

Click The Link: "Click Here to View"

wpid2598-media_1285807437008.png

 

 

Error 404: Only Temporary

wpid2599-media_1285807580905.png

Don’t be alarmed when you see an Error 404 – Page not found warning. This is only temporary.

Note: This is a use case whereby I’m planning to clone and deploy an existing blog and domain over to a new host using the same domain. (This step wouldn’t occur if you’re cloning and deploying a blog over to a separate domain).

When you point your domain’s DNS (Domain Nameservers) settings over to your new host (sidenote: settings will propogate in 24-48 hours), the home page posts will re-appear automatically. <phew!>

 

 

END: DNS Propogated. Clone Deployment Worked!

wpid2600-media_1285822156990.png

After waiting for propogation to take effect (by checking WHOIS.sc), I refreshed the URL, and all the blog posts appeared. It worked beautifully!

WPTwin (aff) by Wil Mattos and Jason Fladlien works well if you want to clone a blog setup and deploy it to various new blogs, and also for a scenario like mine above, where I need to port an existing blog on a domain over to another new host with the same domain. The process is fast, simple and effective, saving my sanity and endless hours doing it the manual way. Thanks Wil & Jason!

If you’re looking for a software script solution to:
- Save you time and headaches backing up and deploying clones of your blog anywhere you want
- Save you time automating your blog setups (ie. theme and plugin customizations)
- Backup your blog completely in seconds
… then seriously consider WPTwin (aff).

Now, I can enjoy my family this weekend instead of boring blog transfers! :-)

 

 

Post comment as twitter logo facebook logo
Sort: Newest | Oldest
c_j_conway 5 pts

Thanks, Sherman. Do you know whether this transfer will affect search engine rankings, even if the blog is staying on the same URL?

ShermanHu 7 pts moderator

c_j_conway The clone & execution of your blog on the same URL shouldn't affect search engine rankings if its to the same destination :-)

fergusonsarah 101 pts

Thanks for sharing this great information.. I really appreciate the lesson that I learned here.. Keep posting some more!

JamakGolshani 5 pts

Thanks for the great info Sherman. Much appreciate it!

Sherman,

Great walk through! That's awesome you went into such depth. It's pretty cool how quick it clones and deploys sites isn't it?

Also, the deploy is INSTANT on any domain or service that's already been propagated. :)

Thanks Jason :-) WPTwin is brilliant in its simplicity and function, and have cloned 6 working blogs so far, easily, without pulling any hair out ;-)

Hey Sherman,
I had a problem of pretty much consistently worrying about backing up all of my blogs. It's really great to know I can sleep at night now.

Hey Anne, I know, it's painful considering how tedious the process can be, that's why I procrastinate on it forever! ;-) Diggin' the idea this script is a wonderful backup solution too ;-)

on the webinar for this with Jason right now! looks really cool...

Mtn Jim

Jim, good on ya. Lots of great possibilities with this script, eh? What about it are you most excited for, or what's the biggest problem it'll solve for ya?