Site instance copy-help

Hi,

I have make some edits in HTML and JS file under site assets.

So I want to take a copy of  "Site1" and create a new copy "Site2" in same site collections

Can any body point the PS script?, will there be any impact if i put in same collection?

Thanks for your time

Thanks,

Mike

August 18th, 2015 1:48pm

Hi,

The best way to achieve this is using Site Templates. Go Site Actions --> Site Settings and click on Save Site as Template and choose include content checkbox to be checked. This creates a site template package(WSP) in the solutions gallery. Now you can create a site using this template. But this feature is not available for a publishing site.

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 11:12pm

Hi,

Backup-spsite  -Identity http://site1  -path C:\site1.bak   --- Backup command

Restore-SPSite -Identity http://site2(New site collection) -path C:\site1.bak --- Restore command

Hope this helps :)

August 19th, 2015 2:40am

Hi Mike,

You can follow below steps and create a subsite under same site collection:

1) Create a sub site name "Site2" in the site collection.

2) Export the source sub site by running below command:

export-SpWeb -Identity $Site1Url -Path $FolderToSave\site1.cmp

3) Import the exported source site file to target subsite(site2)

import-SpWeb -Identity $Site2Url -Path $FolderToSave\site1.cmp

Change the variable names with the values in your environment.

If this helps, please mark as answer.

Free Windows Admin Tool Kit Click here and download it now
August 19th, 2015 3:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics