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 known as SharePoint Team Services. Fortunately, it can be used to back up and restore sites as well.

The SMIGRATE utility uses the same mechanism 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 and migrations of data without loss of security settings, use the STSADM tool described in the previous section.


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

[View full width]

Smigrate.exe w http://servername/sitecollectionname -f SiteBackup.fwp u AdminName pw Password4You

Here, AdminName is the name of a user with admin rights to the site collection and Password4You is the password of that user, similar to what is shown in Figure 25.4.

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


As with many of the backup and 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 creating a new site, but without applying a site template. Once you have done this, you can restore the site by executing the following command from a command prompt and in the same directory:

[View full width]

Smigrate.exe r -w http://server5/sites/marketing -f C:\backuplocation\SiteBackup.fwp u adminname pw Password4You

Note that backuplocation will be the location you specified during the backup process and that the adminname and Password4You variables are the username and password of a Site Admin, respectively.



    Sams Teach Yourself Microsoft SharePoint 2003 in 10 Minutes
    Sams Teach Yourself Microsoft SharePoint 2003 in 10 Minutes
    ISBN: 672327236
    EAN: N/A
    Year: 2004
    Pages: 181

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