Recently one of our customer created a ticket and
requested to move some of his subsites to separate site collections. I think
this will be genuine requirement for everybody as rather than keeping the
subsite, it’s better to keep a separate site collection.
I worked on this request and thought of sharing with
everybody so that it would be beneficial for the complete community.
Let me explain in basic manner so that there would be
no confusion:
Let’s assume here are my subsites:
I wanted to convert / move the above subsites into
separate site collections so that they would looks like:
Resolution:
Steps are pretty simple so nothing to worry about and
we can easily achieve this requirement without any issues.
Note: If you have a requirement like the mentioned
above and don’t have sufficient rights to do the operation on your own then
request you to forward the requirement to your SharePoint Administrators so
that they can complete this task based on your requirements.
Please refer the following commands which are very
helpful in accomplishing the requirements:
Export
command:
Export-SPWeb -Identity
<URL of the subsite> -Path <Filename> -IncludeUserSecurity
By using the above command we can take the backup of
the subsite.
Import
command:
Import-SPWeb http://site -Path D:\export.cmp
-UpdateVersions –Overwrite
By using the above command you can restore the subsite
backup to the site collection that you want as per your requirements.
If you have any queries/questions regarding the above
mentioned information then please let me know. I would be more than happy to
help you as well as resolves your issues, Thank you.