Exporting and Importing sites between WSS 3 and SharePoint Foundation 2010.
I was recently tasked with moving a list from a WSS3 server to a SharePoint Foundation 2010 server. After Googling around, I tried exporting the list as a template in WSS3, then importing the template into Foundation. However, I quickly learned that SharePoint Foundation cannot import WSS3 list templates. There didn’t seem to be a way to ‘update’ the WSS3 list template to Foundation; dead-end. To get around this limitation, I backed up the entire WSS3 site and performed a ‘database attach upgrade’ to a new temporary Sharepoint Foundation server, then transferred the list as a template.
- Backup the SP_WSS3 database
- Restore it to a temporary SP_2010 server (SP_2010Temp)
- Copy the list (as a template) from the temporary server to your production SP_Foundation server
Things to note:
- The Two SharePoint servers we are using are Windows Sharepoint Services 3.0 and SharePoint Foundation 2010
- For reference, here are my version numbers:
SP_WSS3′s version is: 126.96.36.19921, SP
SP_2010’s version is: 14.0.4762.1000, SP2010 RTM
- SP_2010Temp’s version will be the same as SP_2010
Setting up your new SP_2010Temp site:
Note: I referenced this blog for lots of this information Installing a Standalone Sharepoint Foundation 2010 Server. However, we’re not going to complete every step because we shouldn’t need SSL for this temporary SharePoint Foundation server.
The basic outline:
- Install SQL Server 2008 R2 Express
- Download SharePoint Foundation. You do not need Search server Express
- Follow Prepare your system
- Install SharePoint Prerequisites
- Install SharePoint Foundation 2010
- Follow the Intial Configuration Wizard
- Follow Create Site Collection
- Ignore everything else!
To upgrade the actual WSS 3 content to SP2010, we will use the “database attach upgrade” method. See this blog post for more info: WSS3.0 to SharePoint Foundation 2010 upgrade
Backing up the WSS 3 Content Database:
- On your SP_WSS3 server, Open SQL Server Management Studio and connect.
- Expand Databases, than right click WSS_Content -> tasks -> Back Up…
- When the back up window opens, set your destination to: “disk” then click “Add”.
- In the next menu, Choose a location , and give the backup a name.
- Now on your SP_2010Temp server, open SQL Server Management Studio
- Expand the databases, right click on the database you want to restore to. This database will be similar to the filename that you just backed up (e.g. WSS_Content_1)
- Right click on the database -> tasks -> Restore -> database
- In this Menu, check that the Destination for restore is the database you just backed up from SP_WSS3, Under “Source for restore” choose “From device”, then click the “…” button, This will open another menu prompting for you to choose your backup file, find the backup file of the WSS_Content and click ok.
- After you choose the backup file, you will notice that the selected backup file is now under your “Source for restore”, make sure its checked and proceed to the next step
- Open options and check “Overwrite”
- Click ok and you should get a message saying “The Restore of <database> completed successfully.”
- Login to SP_2010New’s central administration website.
- Go to “Manage Content Databases”
- If there is a database there, delete it, ignore the pop up
- The last step: We are going to add our new database to the SP_2010New’s Farm using this command, we should be still Remote desktop to SP_2010New
cd “<programfiles>\common files\microsoft shared\web service extensions\14\bin”
stsadm -o addcontentdb -url <URL> -databasename <database name>
- This will upgrade your database to 2010 format at the same time
- Navigate to the Central admin site for SP_2010New, the new database should be under “Manage Content Databases”
- Your Done!
The two websites should look similar becuase we havent done a visual upgrade, you can see simularities in the menus and how the is website setup.