Exporting/Importing SharePoint/WSS Subsites

Exporting/Importing SharePoint/WSS Subsites

I needed to export a subsite this morning from a WSS Site Collection and import it to another Site Collection on another server. After a bit of rooting around, I found the stsadm commands to do just that.

If you wish to export a subsite or site collection (this will save a bak file containing the exported contents):

stsadm –o export –url http://server1:1000/subsite –filename c:Subsite.bak

To import this exported site into another site collection/subsite, use the following command:

stsadm –o import –url http://server2:1001/subsite –filename c:Subsaite.bak

In addition to the above you can add the following switches:

-includeusersecurity (ensures all the columns e.g. Modified by are maintained

-versions 4 (ensures all versions of list items/documents are exported


Make sure that the site you wish to import to shares the same template. E.g. if you are exporting a team site, you must import to another team site. If you try to import a site to a non matching template then you will get an error:

“The exported site is based on the template STS#1 but the destination site is based on the template STS#0”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">