16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 28: Disaster Recovery in SharePoint <strong>Products</strong> <strong>and</strong> <strong>Technologies</strong> 761<br />

To restore a site from a backup file, either to a new site or a separate server,<br />

use the Stsadm.exe restore parameter. Use the overwrite parameter to replace any<br />

existing site at the new location. Before running this comm<strong>and</strong>, ensure that a content<br />

database exists for the restored site collection. To create a new content database,<br />

go to the Manage Content Databases page from the Virtual Server Settings<br />

page, as shown in Figure 28-2. On this page, select Add A Content Database.<br />

F28xr02.bmp<br />

Figure 28-2 Creating a new content database on the Manage Content Databases page<br />

The following example restores a site collection to the original site or to a new site:<br />

stsadm -o restore -url http://www.woodgrove.com/sites/myexamplesitecollection<br />

-filename myexamplesitecollectionbackup.bak –overwrite<br />

The following example restores a site collection by using the SharePoint Migration<br />

Tool:<br />

smigrate -r -w http://www.woodgrove.com/mysitecollection -f c:\backup\mybackup.fwp<br />

Backing Up <strong>and</strong> Restoring Personal Sites<br />

Like site collections, personal sites—which are discussed in Chapter 23, “Personalization<br />

Services in SharePoint <strong>Products</strong> <strong>and</strong> <strong>Technologies</strong>,”—can be backed up<br />

using the Stsadm.exe utility. By default, personal sites content is contained in the site<br />

database of the portal site. You could use the SharePoint Portal Server Data Backup<br />

<strong>and</strong> Restore utility to back up the personal sites content, but then you would not be<br />

able to restore individual personal sites. Instead, you would have to restore the<br />

entire site database. Stsadm.exe can back up <strong>and</strong> restore individual users’ personal<br />

sites, including all subsites, files in document libraries or lists, security <strong>and</strong> permission<br />

settings, <strong>and</strong> feature settings.<br />

The Stsadm.exe enumsites parameter lists all personal sites that have been created<br />

on the portal site. The enumsubwebs parameter lists all subsites within a site<br />

collection. Use the enumsites parameter to parse the list of personal sites, <strong>and</strong> then<br />

back up each personal site to a file. The following example shows how to enumerate<br />

personal sites on the portal site:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!