The SharePoint Engie that could…

Stories from a SharePoint Engineer that isn't afraid of Visual Studio.

Moving SharePoint Sites using STSADM

with 6 comments

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.

Written by Henry

July 12, 2007 at 10:38 am

Posted in SharePoint

6 Responses

Subscribe to comments with RSS.

  1. 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

  2. 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

  3. 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

  4. 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

  5. company insurance arbella mutual company arbella insurance mutual

  6. army reserve retirement calculator pay retirement pay reserve army calculator


Leave a Reply