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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

754 Part IX: Maintaining a Server in Windows SharePoint Services<br />

You can use the SharePoint Migration Tool from the comm<strong>and</strong> line or from<br />

batch files. To back up a site, you use the SharePoint Migration Tool with the following<br />

parameters:<br />

smigrate.exe -w -f [-e -y -u -pw<br />

]<br />

All backup files end with the .fwp extension. If you do not specify the .fwp<br />

extension, it will be added automatically. The optional –e paramater excludes subsites<br />

during backup. The optional –y parameter overwrites an existing backup file.<br />

The optional –u parameter specifies the user name of the website administrator. The<br />

optional –pw parameter specifies the password for the website administrator. Use an<br />

asterisk (*) to be prompted to type a password.<br />

Note You can also use <strong>Microsoft</strong> FrontPage 2003 to create a backup file<br />

by opening a site via File\Open Site, specifying the URL of the site, <strong>and</strong><br />

choosing Tools\Server\Backup Web Site. You can restore a site via<br />

FrontPage 2003. First you should open the nontemplated site to which you<br />

want to restore the backup. You can do this by choosing File\Open Site,<br />

specifying the URL of the site, <strong>and</strong> then choosing Tools\Server\Restore<br />

Web site.<br />

During a backup, the SharePoint Migration Tool produces a cabinet file (.cab)<br />

with an .fwp extension to back up the site <strong>and</strong> then uses this .fwp file to restore the<br />

site or site collection. Developers can modify the backed-up site template before the<br />

site is restored by changing the file extension of the .fwp file to .cab <strong>and</strong> extracting<br />

the manifest.xml file. After changes are made to the manifest.xml file, the .fwp file can<br />

be repackaged <strong>and</strong> the site can be restored by using the SharePoint Migration Tool.<br />

You can only use the SharePoint Migration Tool or FrontPage to restore a backup<br />

to a site if the site exists but no template has been applied to the site yet. You can create<br />

a nontemplated site in the following ways:<br />

■ Using the Windows SharePoint Services pages, you can create a new site on<br />

the New SharePoint Site page. After creating the site, you should stop the creation<br />

process on the Template Selection page before choosing <strong>and</strong> applying a<br />

template.<br />

■ Using the Stsadm.exe tool, use the CreateWeb operation without using the<br />

–sitetemplate parameter—for example: stsadm.exe –o createweb –url http:<br />

//woodgrove/MySubSite<br />

■ Using FrontPage, select File\New\Subsite, <strong>and</strong> then select any template except<br />

for SharePoint Team Site. This will apply a FrontPage site template to the site;

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

Saved successfully!

Ooh no, something went wrong!