Moving SharePoint Sites using STSADM
Just a note to myself since I keep confusing this with the Backup/Restore method:
When trying to backup and restore a site you can use SharePoint Designer 2007 to do this, but you can also use STSADM:
STSADM -o export -url <url> -filename <filename> -includeusersecurity -versions 4
STSADM -o import -url <url> -filename <filename> -includeusersecurity
Note the URL being imported into should be created in SharePoint Designer with an Empty Website.



How can I use this method for an entire portal? We’ve set up a Sharepoint server in our lab and I’ve been tasked with making it look “just like production”, data and all.
Phil
July 25, 2007 at 12:37 pm
Hey Phil, try a google for moving sharepoint content databases. I believe that’s currently the easiest way to do it. The only downside is that you’ll have to recreate your configuration, central admin and ssp databases.
Henry
July 25, 2007 at 7:40 pm
I am new to SharePoint & WSS 3.0. I recently setup a test MOSS 2007 server and site (XXX) and a WSS 3.0 server and site (YYY), then tried moving a site from the MOSS to WSS using stsadm -backup/restore. I was testing the capabilities and problems we would encounter from a catastrophic event. It worked great and everything moved to the new server. I was able to backup from site XXX (MOSS) and restore to site YYY (WSS). Even though my site was using a different DNS name it appeared to work.
All the permissions followed but I have noticed one thing: my email alerts still worked and I was able to create new alerts. However, the site URL in the email alert was still pointing to the original site, not my new site.
I have not tried the import/export feature but will be testing that feature later this week. Any idea how I can get my email alerts point to my new site?
Benj
October 1, 2007 at 3:26 pm
Look at http://blogs.msdn.com/skelley/archive/2007/06/18/alerts.aspx. This has sample code and discussion of your issue about site urls.
Mario
December 6, 2007 at 6:50 am
company insurance arbella mutual company arbella insurance mutual
insurance arbella company mutual
January 7, 2009 at 10:57 pm
army reserve retirement calculator pay retirement pay reserve army calculator
calculator pay army retirement reserve
February 7, 2009 at 6:56 am