Problem when moving sub site using STSADM
Hi, I have to move a site from one site collection to another one. I thought I will use export and import command to do that, but when I try that I got an error saying that “STSADM can export only site collection or site”. Here is my case I have one web application and its top site collection was http://mainsite And I have a sub site marketing under main site http://mainsite/marketing Then I have another site Ohio under marketing http://mainsite/marketing/ohio I want to move Ohio site to different site collection so I used the bellow command to do that stsadm -o export -url http://mainsite/marketing/ohio -filename C:\temp\ohio.cmp -includeusersecurity -versions 4 Then I got error saying that “STSADM can export only site collection or site” But when I remove Ohio from URL “stsadm -o export -url http://mainsite/marketing/ -filename C:\temp\ohio.cmp -includeusersecurity -versions 4” it worked. But I want to move only Ohio site can anyone help me.
January 14th, 2011 7:30pm

hello, can you make sure 'ohio' is a subsite and not just a a webpart page? Because there shouldn't be any reason stsadm fails to export. hope this helps, Regards, Rohan
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2011 8:18pm

Hi, I have to move a site from one site collection to another one. I thought I will use export and import command to do that, but when I try that I got an error saying that “STSADM can export only site collection or site”. Here is my case I have one web application and its top site collection was http://mainsite And I have a sub site marketing under main site http://mainsite/marketing Then I have another site Ohio under marketing http://mainsite/marketing/ohio I want to move Ohio site to different site collection so I used the bellow command to do that stsadm -o export -url http://mainsite/marketing/ohio -filename C:\temp\ohio.cmp -includeusersecurity -versions 4 Then I got error saying that “STSADM can export only site collection or site” But when I remove Ohio from URL “stsadm -o export -url http://mainsite/marketing/ -filename C:\temp\ohio.cmp -includeusersecurity -versions 4” it worked. But I want to move only Ohio site can anyone help me.
January 14th, 2011 8:42pm

Hey there, you can definitely export a site using that syntax (see my post here: http://blog.brainlitter.com/archive/2009/05/11/how-to-backup-and-restore-migrate-a-single-sub-site-of-a-sharepoint-site-collection-using-stsadm-%e2%80%93o-export-and-import.aspx). Any chance Ohio is not a site but rather a list or library? The message/error there seems pretty sure whatever object you are moving is not supported. Or perhaps it is a workspace (though I would expect workspaces to be supported). Finally, it may be possible that the export command isn't supported when the publishing features are on, though I can't say I've checked. I do know the 'save site as template' will not appear in a publishing enabled site. Be careful when using the export site tools. If you have created top/site collection level site columns or content types, those won't come with your site export, so you might find stuff broken on import if they are missing. Hope that helps. SeanSean Wallbridge, SharePoint MVP Victoria, BC On The Web: http://www.itgroove.net My Blog: http://blog.brainlitter.com
Free Windows Admin Tool Kit Click here and download it now
January 15th, 2011 11:10pm

So, the quick answer is yes you most certainly can do stsadm -o export to move sub-sites in-fact you can use export with powershell commands also. I did a blog about it on my site. I wanted to showcase how much more you can do with PowerShell with Export on Sub Sites http://www.sharepointfabian.com/blog/Lists/Posts/Post.aspx?ID=185 cheers. Connect with Me! Fabian G. Williams | Twitter @FabianWilliams | Blog http://www.sharepointfabian.com | Email: fabian@adotob.com
January 16th, 2011 3:05am

with PowerShell you can even export a List within a Sub-Site.. try PowerShell; example is in my blog post above Connect with Me! Fabian G. Williams | Twitter @FabianWilliams | Blog http://www.sharepointfabian.com | Email: fabian@adotob.com
Free Windows Admin Tool Kit Click here and download it now
January 16th, 2011 3:06am

Depending on urgency, you could save the Ohio subsite as template with data and create it in different site collection.-- techChirag
January 16th, 2011 6:10pm

Depending on urgency, you could save the Ohio subsite as template with data and create it in different site collection.-- techChirag
Free Windows Admin Tool Kit Click here and download it now
January 16th, 2011 6:10pm

Hi rithu, Do you want to move to the site collection in the same web application? If so and if it is a publishing site, please try to move this site in Site Content and Structure by click Site Actions > Manage Content and Structure.Best regards. Emir
January 17th, 2011 3:16pm

Hi Emir, I want to move sub site which is in same web application but in different site colletion For example: i want to move a site http://mainsite/marketing/ohio to http://mainsite/sites/finance/ohio in my case mainsite is a web application mainsite/ is a primary site collection & mainsite/sites/finance is another site colletion Note: Just for additional information ohio site is a subsite & used document workspace as a template when creating a site. Thanks in Advance
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2011 6:19pm

Hi TechChirag, I Cant save it as a template with data because it has lot of data in it.
January 18th, 2011 6:21pm

Hi Fabin, Thank you very much for posting the blog, But I am sorry we are using sharepoint 2007 not 2010 so powershell is not supported & the subsite i am trying to use is document workspace site. can you help me how to do that. Thanks in advance
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2011 6:03pm

In 2007 you can save the site as a template from Site Settings. You will create an STP file. You should post this in the 2007 forums.SharePoint 2010 MCM. Feel free to contact me http://www.sharepoint.bg/radi
January 19th, 2011 6:12pm

Sorry by mistake I have posted this in 2010 forum, I tryed saving the site as a template but it has huge data so it can not save as a template. Thanks
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2011 6:33pm

Hi rithu, Please try this 3<sup>rd</sup> party, it can be used to move sites within a farm. http://www.axceler.com/SharePointAdministration/ControlPoint.aspx ================================================================================= The third- party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product’s performance or reliability.Best regards. Emir
January 21st, 2011 3:22am

can any one help how to move the sub sub site (document workspace) to different site collection, thanks
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2011 4:48am

Have you tried STSADM extensions? If not, here is a link to Gary Lapointe's old blog, explaining how you can move a sub-site to a new site collection: - http://blog.falchionconsulting.com/index.php/2007/09/convert-a-sub-site-to-a-site-collection/ There are some things you'll need to fix once the site has been imported but the extensions and the blog entry linked should help a lot, but be sure to read ALL the comments too.http://www.final-exodus.net
January 21st, 2011 7:57pm

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

Other recent topics Other recent topics