How to Clone a DNN Site Using Control Suite
A clone of a website is an exact duplicate of the database and site files with slight modifications. Because MS SQL must have unique databases to manage with unique database users, some slight modifications to the database name and user must be made during the cloning process.
A clone is useful when you want to copy a live site and use it for development work. You can add new modules, try out new skins, update content and experiment with the cloned site without impacting your live site. A clone is also commonly used when you want to stage an upgrade. If you are unsure of how your site will do when it's upgraded to a newer version of DotNetNuke, a clone provides a test bed. Upgrading the clone gives you the time you need to upgrade modules that may break during the process and upgrade the skin to a newer version before cloning the upgraded version back to the live site.
To create a clone of your website, you must be a dedicated server customer. Shared hosting customers can contact the support team with a request to have their site cloned or a staging upgrade performed on their site. See the DNN Services page for information on the associated charges for shared hosting customers.
Create the Development or Staging Upgrade Domain
Clone the Live Site to the Newly Created Domain
- Log into your dedicated server using Remote Desktop.
- Start Control Suite by double clicking on its desktop icon. If the shortcut is not available, browse to c:\netstrap\SystemControl and run NetStrap.exe via Windows Explorer.
- Right click on Plesk x.x.x (Domains) > Login as Admin. This logs you into the Plesk Control Panel as the admin user.
- If you are a reseller who has multiple clients and are creating the clone for one of your clients, click on Customers, then choose the client.
- Click on Domains > Create Domain.
- Fill out the screen with the clone's domain name, a login, a password, and a confirmed password. We typically append "dev" or "upgrading" to the name of the live site we are cloning for organizational purposes. Click on Next.
- Click Finish unless you want to set limits on the domain by clicking Next.
- Close Plesk.
How to Clone the Development or Upgraded Site Back to Live Site
- In Control Suite, double click on the Plesk x.x.x (Domains) icon. Click on the Refresh icon in the Commands Ribbon if the newly created domain is not listed.
- Double click on the live site you are cloning to the newly created domain.
- Click on the DNN x.x.x icon in the Navigation Tree.
- Click on the Clone DotNetNuke icon in the Commands Ribbon.
- Click on Destination Site > ... which will bring up a Choose Object dialog box allowing you to navigate the tree for the newly created domain.
- Double click on Plesk x.x.x (Domains). Double click on the domain you created to clone to. Click on No App Installed. Click OK. Note that Control Suite will not allow you to clone to a domain that already has a CMS app installed on it.
- Specify the Destination Database and Destination Database User and make sure they're different from the source site. If two DNN instances are hooked up to the same database, it can cause many serious problems.
- Click on Execute > Yes. If you kept the default options the source site is backed up, optimized, files are copied, permissions are applied and the cloned site is loaded in a browser.
Once your development or upgrade work is finished you can use the clone tool to clone the development/upgraded site back. Because the clone tool will not clone to a site with an app installed, you must first delete your live site.
- Double click on the live site from within Control Suite's Navigation Tree.
- Select the DotNetNuke icon.
- Click on the Delete App button.
- Note that by expanding the Backup and Delete Parameters you see that by default, the site files and database are backed up. A description can be added to the backup. You can also choose which databases to delete and whether to delete your site files. They must be deleted for the clone to work.
- Press Execute > Yes.
- Once the domain of your live site is empty, the development/upgraded site can be cloned to it's location. Click on your development/upgraded site's DNN version.
- Click on the Clone DotNetNuke icon.
- Click on the Destination Site > ... and navigate to your original site's No App Installed location in the Choose Object dialog box. Click on OK.
- Click on Execute > OK.
- Your development/upgraded site will be cloned back to your original live site's location and displayed in a browser window.
Note that if the clone fails because the destination site is not empty, you may have had an Explorer window open to your site files location. If you manually delete the contents of the httpdocs folder, the clone tool should function as expected.