Forum


HomeHomePremiumPremiumAdministrationAdministrationCloning website on same dedicated serverCloning website on same dedicated server
Previous
 
Next
New Post
3/30/2016 2:17 PM
 

Hi Aderson, 

Please can you advise the best way to update a website by cloning on the same dedicated server? I have purchased Evotiva DNN Backup and backup the website and have the restore package ready to go. Can you suggest the correct steps for working on the clone website on the same dedicated server then pointing the domain to the new cloned site after upgrades and testing is completed?

Look forward to hearing from you soon.

Kind regards

Phil 

 
New Post
3/30/2016 2:38 PM
 

Hi Phil,

If the site is on the same server, you don't need to use DNN Backup.

Steps:

1 - Make sure you have a dev domain pointing to the server. You will need that to run the dev site;

2 - Copy the site files to the dev domain root folder on the server;

3 - Backup the DB using SQL Server Management studio;

4 - Restore the backed up DB with a different name to SQL using SQL Server Management studio;

5 - On the copied site files, change the connection string inside the web.config to point to the newly created DB;

6 - On the copied DB, go to PortalAlias table and replace the live domain with the dev domain;

7 - On the copied DB, go to PortalSettings table and look for DefaultPortalAlias. Replace the live domain with the dev domain;

With that you should be able to run the cloned site;

Once you are ready to make dev the new live you can:

1 - Go to IIS and switch the site root folder from the live site to point to the dev site;

 

2 - On the copied DB, go to PortalAlias table and replace the dev domain with the live domain;

3 - On the copied DB, go to PortalSettings table and look for DefaultPortalAlias. Replace the dev domain with the live domain;

In short I think this covers it all.

Best regards,

Aderson

 
New Post
4/4/2016 2:04 PM
 

Hi Anderson, 

Thank you for your reply, your steps worked perfectly. Here are some additional points I made during the process

  1. I created a new database and during the restore from the backup process, I selected the newly named .ldf and .mdf files within the Files tab (I'm presuming you would effect the original website database files with changes made to the cloned site if you didn't do this?) and selected "Overwrite the existing database (WITH REPLACE)' in the Options tab. 
  2. I created a new website in IIS and pointed to the copied website files folder.

The only question I have is under the Files tab in database properties the Logical Name is still the same as the original site name, will this be a problem?

Thanks again for your help

Kind regards

Phil 

 

 
New Post
4/4/2016 2:31 PM
 

Hi Phil,

Great to know that you were able to use the steps I have provided with some adjustments.

In regards to your question, I don't foresee a problem there though.

Best regards,

Aderson

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationCloning website on same dedicated serverCloning website on same dedicated server



Try FREE
30 days money back guaranteed