Restoring a SharePoint Site Collection Using the STSADM Utility


Once the original site collection has been deleted, or a new server has been built to replace the old one, you will be ready to restore the site collection using the following procedure:

1.

From the server that has Windows SharePoint Services installed, open the command prompt by going to Start, Run and then typing cmd.exe into the Open box.

2.

Type the following into the command line box:

 cd \Program files\common files\microsoft shared\web server extensions\60\bin 

3.

Type in

[View full width]

stsadm.exe o restore url http://servername/sitecollectionname -filename C: \BackupLocation\SiteCollectionBackup.dat

Note that servername is the name of your server, sitecollectionname is the full path of your site collection (that is, http://servername/sites/marketing), and C:\BackupLocation is the location where the backup file was saved to, similar to the example shown in Figure 25.3.

Figure 25.3. Restoring a site collection.


Using this approach is ideal for migrating data or restoring a site because it restores all SharePoint site security and SharePoint list data and can be scripted to run via batch files.



    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