Tuesday, January 15, 2008

STSADM Export

I was recently moving a WSS2.0 site (not site collection) to MOSS and thought it was going to be fairly quick and straight forward.

  1. Upgrade the WSS2.0 server to WSS3.0
  2. Use either Designer or STSADM Export to move the site

The upgrade went fine, but when I tried to use Designer to move the site, but during the restore I received:

Error occured while importing the web http://portal/newsite
Could not find file 'C:\windows\temp\a93239....\exportsettings.xml'

I then decided to use "STSADM –o export" to move the site. This worked fine, but for some reason it was not backing up all of my files. Documents were missing and not being transferred. After some investigation, I realized that this is one of those times where the switches are very important. You have to include the "–versions" switch and set it to the level you want:

Any one of the following versions:

  1. Last major version for files and list items(default)
  2. The current version, either the last major or the last minor
  3. Last major and last minor version for files and list items
  4. All versions for files and list items

By design, the export will not export documents without a published major version or draft copies unless you set the switch correctly. Once I added "–versions 4", everything backed up perfectly

No comments: