Deleting a Site Collection in Advance of a STSADM Restore


Using the same STSADM utility, you can restore a site collection to the SharePoint server. To do this, however, either a new SharePoint server must be created (which is what you would do in a disaster recovery scenario) or you have to delete the old site collection. Once the old site collection is deleted, you can restore the original site data. Unlike with FrontPage or SMIGRATE, you don't have to create a blank site to accomplish this, but the site must be deleted; otherwise, the restore will fail.

CAUTION

As always, be sure to run these types of operations in a lab environment before testing in production. You can't be assured of the integrity of the backup, so it is important to check it first before deleting your site.


To delete the original site collection in advance of the restore, use 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 in 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

 stsadm.exe o deletesite url http://servername/sitecollectionname 

Note that servername is the name of the server and sitecollectionname is the name of your site collection, similar to the example shown in Figure 25.2.

Figure 25.2. Deleting a site collection in advance of a restore.




    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