Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am exporting a site using stsadm command. It is automatically exporting the subsites too. I need to take the current site only, how can I restrict the subsites?

For example I'm exporting the site, http://site1/subsite1

The subsite1 has 4 child sites. I need to avoid that 4 child sites from that export list.

The command I am using is stsadm -o export -url http://site1/subsite1 -filename c:\backup.cmp

share|improve this question

1 Answer

In scenarios like this, I will export the desired site and it's subsites and import it to a dummy site collection. After it's imported, I delete away the unwanted subsites, export it again, and import it to the final location.

share|improve this answer
do you think it is right way. But no problem, i am asking whether it is the functionality of stsadm command. Or there is option for that. – John Oct 4 '11 at 13:15
I don't think there is an option to exclude subsites. – Kit Menke Oct 4 '11 at 13:21
There isn't an option to limit the export to one particular subsite only. It will grab the entire tree of sites from that level down. – PirateEric Oct 4 '11 at 13:51
@ Thanks to all – John Oct 4 '11 at 14:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.