Hi All,
I had a site collection with 120 subsites under it and wanted to make secondary site collections from it as the database is growing larger than expected. (Ofcourse, it was one idiot idea to make all the sub sites under one site collection). I used "Export/Import" option from central administrator. I know its not that big , but still wanted to share.
1. Export sub site to a drive
Under Central Administrator---Back up and Restore---Export a site or a list.
Browse the path of the sub site and give the path where you want to store the exported file and give appropriate name with .cmp extension for the file.
Once the export is finished, Go to that folder and you need to see the bunch of .cmp files and one "export" log file.
2. Create a secondary site collection (I know it is not mandatory to write about creating secondary site collection here, I know you guys know about it)
3. Import the content to secondary site collection
Import-SPWeb -Identity http://servername/secodarysitecollection -Path c:\\xxxxxx\xxxxx.cmp -Force
This command will import all the content to the secondary site collection.
Note: After Importing, if you open the site and if you see "ERROR" page, don't get panicked. You need to open the site settings page of it http://servername/secondarysitecollection/_layouts/settings.aspx and "Edit site in sharepoint designer" and add the custom "MASTER PAGE" from the main site collection to this secondary site collection and publish a major version of it and now you can see the content same as the subsite.If there is no custom master page it wont show any error on the site.
I had a site collection with 120 subsites under it and wanted to make secondary site collections from it as the database is growing larger than expected. (Ofcourse, it was one idiot idea to make all the sub sites under one site collection). I used "Export/Import" option from central administrator. I know its not that big , but still wanted to share.
1. Export sub site to a drive
Under Central Administrator---Back up and Restore---Export a site or a list.
Browse the path of the sub site and give the path where you want to store the exported file and give appropriate name with .cmp extension for the file.
Once the export is finished, Go to that folder and you need to see the bunch of .cmp files and one "export" log file.
2. Create a secondary site collection (I know it is not mandatory to write about creating secondary site collection here, I know you guys know about it)
3. Import the content to secondary site collection
Import-SPWeb -Identity http://servername/secodarysitecollection -Path c:\\xxxxxx\xxxxx.cmp -Force
This command will import all the content to the secondary site collection.
Note: After Importing, if you open the site and if you see "ERROR" page, don't get panicked. You need to open the site settings page of it http://servername/secondarysitecollection/_layouts/settings.aspx and "Edit site in sharepoint designer" and add the custom "MASTER PAGE" from the main site collection to this secondary site collection and publish a major version of it and now you can see the content same as the subsite.If there is no custom master page it wont show any error on the site.
Comments
Post a Comment