Migrating SharePoint Site Data Using the SMIGRATE Utility


SMIGRATE is another utility installed with Windows SharePoint Services that can be used to move or back up data. SMIGRATE was originally designed to migrate data from the older version of Windows SharePoint Services that was known as SharePoint Team Services. Luckily, however, it can be used to back up and restore sites as well.

The SMIGRATE utility uses the same mechanism that FrontPage uses when backing up sites, except that this version can be scripted to run at specific times because it is a command-line utility.

CAUTION

As with backing up a site with FrontPage, SMIGRATE can lose certain security settings on a site, so it is important to validate security settings after performing a restore. For backups or migration of data without loss of security settings, use the STSADM tool described in the previous section.


Backing Up the Site Data Using SMIGRATE

The SMIGRATE tool can be used to back up site data or move it by opening a command prompt in the same way that is described for the STSADM utility and navigating to the same \Program files\common files\microsoft shared\web server extensions\60\bin directory. The backup command is as follows:

[View full width]

Smigrate.exe w http://servername/sitecollectionname -f SiteBackup.fwp u administrator pw Password

where administrator is the name of a user with admin rights to the site collection, and password is the password of that user, as shown in Figure 19.12.

Figure 19.12. Backing up a site with the SMIGRATE utility.


Restoring the Site Data Using SMIGRATE

As with many of the backup or move utilities, the location where the site collection will be restored must be a blank site, with no template applied. This involves deleting the site and re-creating a new site, but without applying a site template. After you have done this, you can restore the site by executing the following from a command prompt and in the same directory:

[View full width]

Smigrate.exe r -w http://server5/sites/marketing -f SiteBackup.fwp u administrator pw Password




Microsoft SharePoint 2003 Unleashed
Microsoft SharePoint 2003 Unleashed (2nd Edition) (Unleashed)
ISBN: 0672328038
EAN: 2147483647
Year: 2005
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net