Try our conversational search powered by Generative AI!

Copy site from one environment to another

Vote:
 

Hi 

I'm new to epi .

Looking for a method to copy the site form low environment to higher environment.  

What Is the most efficient way to do it ? 

I sow the api and PowerShell cmdlet what do you suggest for content migration ? 

#186125
Edited, Dec 12, 2017 23:04
Vote:
 

Why not just backup and restore the database?

#186154
Dec 13, 2017 7:40
Vote:
 

Isn't the database have unic environment data ? 

#186161
Dec 13, 2017 11:38
Vote:
 
  1. Try import / export the site from admin OR (if you don't have an existing target site yet...)
  2. Do the database backup / restore like Henrik suggest. Remember to copy the blobs as well in that case to get the correct images and redo the website settings in admin to get correct url settings for the site. 

Hope that helps!

#186167
Dec 13, 2017 13:58
Vote:
 
  1. Can this be done via Api? 
  2. Not sure I can do it due to environment parameters . 
#186169
Dec 13, 2017 14:02
Vote:
 

You had the mirroring functionality for setting it up to run automagically before. I wouldn't recommend any automatic solution using api on this part. Possible...sure. Good idea? Probably not.  

#186170
Dec 13, 2017 14:08
Vote:
 

The database have ony two unique data and those can be set with sql-sript 

use MySite
 
update dbo.[tblSiteDefinition]
   set SiteUrl = 'http://test.site.com/'
 where Name = 'MySite';
    
update dbo.[tblHostDefinition]
   set Name = 'test.site.com'
 where Name = 'www.site.com';
#186176
Dec 13, 2017 14:32
Vote:
 

Not automatic but a click of a button . 

What is thus mirroring you are talking about ? 

#186178
Dec 13, 2017 14:39
Vote:
 

Legacy functionality from 7.5

#186359
Dec 18, 2017 16:02
Vote:
 

https://world.episerver.com/documentation/developer-guides/CMS/Deployment/mirroring/

#186371
Dec 18, 2017 17:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.