Transferring a site from WSS 3 to MOSS 2007 – Part 1

November 22, 2008

6 comments

Last week I was working with a client, on moving their site from a WSS 3.0 server to a MOSS 2007 server.

Usually, this shouldn’t be too complicated, or too difficult, but with this one I had all kind of errors and bugs, which made this one quite a challenge.

There’re millions of posts out there, explaining how to do an import, so I’m not going to write that kind of a post. Instead, I will write a few of the things I’ve stumbled upon, as a sort of a reference list, or a one-stop-for-errors-post.

Due to the length of the post, I’ll split it into two parts: Migration plan, and Various errors and solutions while exporting.

So this is part one:

Create a migration plan

The WSS site I needed to migrate, was created by the company’s employees, which didn’t know much about SharePoint when they started. Instead, they used the site to learn, and did many experiments. Due to that fact, I had two problems:

  1. There were no documentation for what was installed in terms of hot-fixes, templates, etc.
  2. There were many customizations which wasn’t needed, or was not in use.

When I’ve tried to import an exported site, to the new server, I’ve started to get all kind of errors, about missing content types, and missing templates.

I didn’t think such a move will work, but I wanted to try in anyway, testing my luck ๐Ÿ™‚

Therefor, what I did, and what I think is very important to any migration, is to plan the process.

My basic guidelines, look something like this:

  1. Make sure you are the site-collection’s administrator, on both machine.
  2. Go over the old site, play with it a bit, make sure you know what content resides in what sub sites, etc.
  3. Make sure both servers are running the same versions, same hot-fixes are installed, etc.
    You can check it by going to “Central Admin -> Operations -> Servers On Farm” the version number should be listed there.
     Server's version in the servers' list
    In the above image,  you can see that my server version is 12.0.0.4518, that means that I haven’t installed SP1 yet. With SP1, I would have 12.0.0.6219. A list of all the hot-fixes and version numbers can be found here:
    What version of WSS/MOSS are you running?
  4. Make a list of custom templates, custom content type, etc.
    One method of getting a list of custom content types, is to go to your Site Actions menu -> Site Settings -> Modify all site’s settings. Browse to the “Site Content Types” gallery, under “Galleries”. If you’re lucky, all the content types will be located in a special group.
    Also, you might want to check for deployed solutions, to get a list of custom site templates installed, features, and so on. Go to “Central Admin -> Operations -> Solution Management” to check that.
  5. Make sure all the documents and content are checked in!
    Go to “Site Action Menu -> View all site content” and go folder by folder. Ask people to check in their file, or just check in all the files which are checked out using your administrator rights.
    You can check-in multiply files, by checking the check box next to them, and clicking the “check-in” action, under the “actions” menu.
  6. Export all the custom items to a shared folder, accessible by both servers.
    You can easily export content types using an STSADM extension: Export Content Types, which is a part of a bigger extension pack, which I will mention in details later.
    To export solutions, site templates, features and so on, go to “Central Admin -> Operations -> Solution Management“and export all the deployed solutions (or, if you have them stored somewhere, just take it from there). To export, simply right click each solution, and choose “Save Target As”.
  7. Export the entire site collection, using STSADM. The simple “export” command is like as follows:
    stsadm -0 export -url <URL> -filename <Name> -includeusersecurity -versions 4
    Where <URL> stands for you site’s URL; <Name> is the file name to be saved.
    The  –includeusersecurity tells STSADM to save the users’ permissions as defined. You should only use this one if you’re exporting to a server in the same environment.
    And lastly,-versions the  with value of “4” tells STSADM to export all the version history.
  8. Make sure your content database is offline. You can do that directly from Central Admin: go to “Application Management -> Content Databases“, click the desired content database, and change the “Database status” combo-box to “offline
    set content database offline
    Click “OK” on the bottom to confirm.
  9. Create an empty, blank, site collection on the target server.
    Don’t worry about the template, it’ll be created by the import process.
  10. Import the custom content types, and install solutions, features, etc.
    To install solutions and features, use STSADM with the “addsolution” followed by “deploysolution” for solutions, and “installfeature” and “activatefeature” or features. 
  11. Import the content to the new server.
    Again, this is very easy to do, just use the STSADM “import” operation. The basic syntax is:
    stsadm -0 import -url <URL> -filename <Name> -includeusersecurity -updateversions 2
    URL, Name, and includeusersecurity, are the same as with the export operation.
    updateversions with value of 2, tells STSADM to overwrite files and all of their versions, if the file exists.
    This is only good if you don’t import to an existing site.

 

Well, here you have it. That was the guidelines. Go to part two, to read the errors I’ve stumbled upon.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

6 comments

  1. Yafit TreabulskyJanuary 14, 2009 ื‘ 12:20

    I realy need your help!!!

    I’m trying to transffer a site from moss to wss. How can i do it, this possibole????

    thanks, yafit.

    Reply
  2. JoeJanuary 15, 2009 ื‘ 10:35

    Hello Yafit,

    Well, generally speaking, it should be possible to transfer a MOSS site to a WSS 3.0 server. However, it wouldn’t be as straight forward as the other way around.

    WSS doesn’t support as many features as MOSS (i.e. it doesn’t have the publishing feature, etc.)

    If you can describe in more details what you’re trying to do, I’ll try to help you.

    You can use the “contact” form on this blog to contact me via mail.

    Good luck

    Reply
  3. JMBeaufordMarch 19, 2009 ื‘ 20:06

    I found your article great. I’m trying to export a site collection from WSS 3 and import the same site collection into MOSS 07.

    I follow your instructions but upon import I receive the following error:

    The file cannot be imported because its parent web / does not exist.

    I’ve read that I need to add that to managed paths, but that doesn’t work. Additionally, checking the managed paths on WSS3, shows only the default paths.

    What is the proper way to export a site collection and import it to a totally different farm/MOSS installation?

    Thanks so much in advance!

    Reply
  4. JackJuly 23, 2009 ื‘ 19:18

    Well Joe,

    I’ve got the same problem as JMBeauford. I want to move a pilot site to the production server and stsadm -o import tells me that it can’t find the parent web…
    My config is like this:
    new URL: http:\\myserver\teamsites\importsite
    old URL: http:\\myoldserver\teamwebsites\importsite

    stsadm -o import says:
    can’t find parent web http:\\myserver\teamsites\importsite\teamwebsites\importsite.

    now that is peculiar isn’t
    any help would be appreciated.

    Cheers!
    Jack

    Reply
  5. JoeAugust 3, 2009 ื‘ 04:13

    Hello JMBeauford, Jack,

    Sorry for the late reply.

    I think I would try deleting the site being reported as missing, from the old server.
    To do so, use the STSADM operation ‘deletesite’ (stsadd -o deletesite http://someurl).

    If you don’t want to rush into deleting stuff, you might want to repair the content database. This should find and remove orphaned sites, if any exists.
    To do so, run ‘stsadm -o databaserepair -url http://yourSite -deletecorruption’ note the “http://yourSite” should be the site collection ow the web application address, and not the missing site’s address.

    Good luck, and feel free to contact me with questions.

    Joe

    Reply
  6. BradOctober 1, 2009 ื‘ 05:54

    Hi Joe, I’m trying to move a Site Collection from MOSS 2007 to WSS 3.0 environment on 64 bit Windows Server 2008. Can you tell me the steps I should follow to get it migrated. The Site Colleciton built on MOSS 2007 did not use any MOSS features, so I think it is easy to migrate. Also do I need to bring Content database offline before the export command or after the export command like you mentioned above.

    Reply