Moving/copying SharePoint Site

1. Make sure the destination web application and site collection have been setup for the destination site.
2. Open command prompt
3. Backup source site with the following command:
       C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe -o backup -url http://www.source.com/ -filename d:\source_backup.bak
4. Restore it to the destination site with the following command (the existing site will be overwritten):
       C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\stsadm.exe -o restore -url http://www.destination.com/ -filename d:\source_backup.bak -overwrite

Please note that , the site collection will be set to be read-only for the duration of the backup. If the operation is interrupted, make sure to check the site lock for this site coll
ection. For more information see stsadm.exe -help getsitelock and stsadm.exe -help setsitelock.

If you encounter an error, you may need to deploy solution (WSP). Please see http://sharepointfoundation2010.blogspot.com/2010/09/how-to-deploy-solution-wsp-from.html
Copying web.config may also necessary.

Advertisements

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