Exporting/Importing SharePoint/WSS Subsites

27 01 2009

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”




3 responses

16 03 2011

Can the destination site created as blank site?

16 03 2011


As far as I am aware – yes you can create the destination site as a blank site and import the content into that.



22 08 2011
Matthias Schlomann

On SharePoint 2010 the Import Property versions didn’t work. You have to use the property -updateversions with a value from 1-3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: