Archive

Archive for the ‘WSS 2.0’ Category

WSS 2.0 Migration

February 9, 2009 Leave a comment

There are different techniques to migrate WSS 2.0 sites from one server to another. We tried different techniques but most of the techniques had one problem or the other.

After searching on internet and reading supporting documents, we tried the Backup/Restore mechanism using the Share-point administration tool “STSADM.EXE”.

STSADM.EXE is provided with Share-point installations and can be found at the path “… Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\BIN”.

This back-up and restore method moved all the customizations of the portal, all data, users and cross site groups and sub-sites were migrated successfully. Following are some special considerations:

  • If there is any custom web part installed on the source server, make sure to install these on the target server.
  • Once the custom web-parts are configured and the security settings are updated, web-parts will start working.

 

Backup Procedure

Parameter

Required?

Description

-filename

YES

Backup filename. For example, backup.dat.

-url

YES

Web site URL. For example, http://server_name/site.

-overwrite

NO

Overwrite any existing backup file or Web site. By default, the backup operation does not overwrite files. If you do not specify this parameter and a backup file or Web site exists, the operation will stop.

 

 The filename parameter can take any of the following types of information:

 

 

  • A filename, such as backup.dat
  • A path on the local hard disk, such as c:\backups\backup.dat
  • A path on a network share, such as \\share\folder\backup.dat

  Note   Before you run the backup operation, you may want to list all of your sites and identify which sites to back up. To see a list of sites on your server, you can use the enumsites operation. Listing the sites with enumsites can be useful when you are automating backups. You can include enumsites in your batch file, parse the list of sites, and then walk through the list of sites to create the backups. The enumsites operation uses the following syntax:

stsadm.exe -o enumsites -url <url>

Restore Procedure

To restore a site, you use the restore operation with the Stsadm.exe command-line tool. The restore operation takes the same parameters as the backup operation: filename, url, and overwrite.

You have three options for restoring sites from a backup.

4.1 You can restore a site over an existing site

Use this option with caution. When you overwrite an existing site, the existing site is completely overwritten. You cannot merge sites. Any existing site content, and existing site permissions, are destroyed when you overwrite a site.

 

4.2 You can restore a site to a new site on the same server

This is the recommended option. When you restore a site to a new site on the same server, you can copy the data from the restored site, and paste it back into the original site. Use this method if you are restoring a site to recover data.

Note   In order for the restore operation to work correctly, the included and excluded paths for your virtual server must be configured properly. If you are restoring a site to a new site, be sure to create an included path for the site, if necessary, before restoring the site.

4.3 You can restore a site to a separate server

This option can be applied with a separate installation of Windows Share-Point Services that uses a copy of the original server’s configuration database.

This is a more complicated scenario, but it gives you the ability to set up two versions of the same site, as in the previous option, but with the ability to use the unused Web site deletion feature to remove the site automatically after a specific time period. For more information about automatically deleting unused Web sites, see Managing Unused Web Sites.

 Note  If you are trying to recover a particular list or list item from a site backup, use this method to restore the site, and then copy the list or item from the restored site back to the original site.

To restore a site from a backup file, either to a new site or a separate server, you would use syntax similar to the following:

stsadm.exe -o restore -url http://server_name/site -filename backup.dat

To restore a site from a backup file on a server share, and to overwrite any existing site at the new location, you would use syntax similar to the following:

stsadm.exe -o restore -url http://server_name/site -filename \\share\folder\backup.dat

Important Considerations

While we tried the above mentioned process on local server, the backup was not restored and an error was thrown by the restore command that the WSS version is different on local server.
Following is the exact error text:

Error: Your backup is from a different version of Windows SharePoint Services and cannot be restored to a server running the current version

Both the servers had same version of WSS but the live server had Service Pack 1 installed on it, we had to install the same server pack on local server to make the minor version equal to one on live server.

We downloaded following files from the internet and installed these on the local server, which fixed the restore problem:
1. WSS2003-KB924881-FullFile-ENU.exe
2. WSS2003SP1-kb841876-fullfile-enu.exe

References

http://support.microsoft.com/kb/825536
http://office.microsoft.com/en-us/winsharepointadmin/HA011608261033.aspx
http://office.microsoft.com/en-us/sharepointdesigner/HA100699391033.aspx
http://office.microsoft.com/en-us/sharepointdesigner/HA101741391033.aspx
http://blog.crowe.co.nz/archive/2007/09/04/Unable-to-restore-backup-from-WSS-2003-SP2-to-another.aspx