Export & Import Site, Sub Sites using STSADM

In this example I will demonstrate how to export a site & sub sites using STSADM. We have already explored the PowerShell, Server Object Model methods of exporting & importing.

Scenario

Following are the site & sub site to be exported.

  1. Home
  2.   – HR
  3. URL: http://server

Step 1: Export

Open SharePoint 2010 Management Shell console window & run the following command.

stsadm –o export –url http://server –filename c:\export\site.cmp –includeusersecurity -versions

The –o denotes operation, .cmp represents content migration package.

Execute the command & you can see updates on the command line window.

image

Step 2: Create new site collection

You can create the destination site collection for importing in the next step.

image

Step 3: Import

Execute the following command to import the exported site from file.

stsadm –o import –url http://server/newsitecollection –filename c:\export.cmp

Execute the command & you can see updates on the command line window.

image

Wait for the operation to be completed.  You can view the log file for more details on import operation.

Step 4: Verify

Now you can use the new URL to verify the site content.  Ensure the sub site is existing.  As a check list perform the following:

  1. Compare Home Page
  2. Ensure Site Features are Activated
  3. Ensure Lists, Libraries exists
  4. Ensure Sub Sites are created
  5. Ensure User Permissions

References

http://technet.microsoft.com/en-us/library/cc262465(v=office.12).aspx

Summary

In this example I have demonstrated how to export a site & sub sites using STSADM.

Leave a Reply

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