|
With Microsoft Windows SharePoint Services, you can back up and
restore individual Web sites hosted on your server or server
farm. You can use this backup and restore method to replace a
site that has become corrupted, or that contains changes that
need to be rolled back (for example, if you need to recover a
list or a list item that was deleted accidentally). This backup
and restore method is not dependent on the type of database you
are using. You can perform this backup and restore method even
if you are running Microsoft SQL Server 2000 Desktop Engine
(Windows) (WMSDE) instead of Microsoft SQL Server 2000.
Caution Previous versions of this guide recommended using regular backup operations to allow recovery of single document or list items. This usage is no longer recommended. Because the backup operation involves reading a large amount of data, running the backup process frequently can interfere with the performance of the system, including blocking end users' access to their sites. If you need a solution for quick recovery of deleted documents or list items, you might want to consider creating a recycle bin by using the Windows SharePoint Services object model. For more information about using the object model to create a recycle bin, see the Add a Recycle Bin to Windows SharePoint Services for Easy Document Recovery article on the MSDN Web site. If you need to back up a specific site, rather than a whole installation of Windows SharePoint Services, you can do so by using the backup and restore operations with the Stsadm.exe command-line tool. You do not need SQL Server 2000 to perform a site-by-site backup. If you are using WMSDE, this is the only backup and restore option that is available. When you back up a Web site, you back up the content database for the site, including all pages in the site, files in document libraries or lists, security and permission settings, and feature settings. The backup process creates a single file that contains all of this data. You can then restore your site to either the same location or to a new location. You can back up only top-level Web sites, not individual subsites. The backup file for a top-level Web site includes any subsites of that site. You must be a member of the server computer's administrators group or a member of the SharePoint administrators group to be able to back up or restore a site. About Site Backup and RestoreSite backup and restore is intended to help you reconnect sites that have become corrupted or need to be restored to a previous state. This process is not intended for moving a site to a new server. If you want to move a site, use the Microsoft SharePoint Migration Tool (smigrate.exe) instead. For more information, see Migrating and Upgrading Web Sites. When using site backup and restore, keep the following items in mind:
Restoring Sites in Active Directory Account Creation Mode When restoring a site that was running in Active Directory account creation mode, the destination site must also be running in Active Directory account creation mode. Further, you cannot restore a site that was not running in Active Directory account creation mode to a server that is running in Active Directory account creation mode. Important:
Using the Backup OperationTo back up a site, you use the backup operation with the Stsadm.exe command-line tool. The backup operation takes the following parameters.
The filename parameter can take any of the following types of information:
Note: Before you run the backup operation, you may want to list all of your sites and identify which sites to back up. To see a list of sites on your server, you can use the enumsites operation. Listing the sites with enumsites can be useful when you are automating backups. You can include enumsites in your batch file, parse the list of sites, and then walk through the list of sites to create the backups. The enumsites operation uses the following syntax: stsadm.exe -o enumsites -url <url> To perform a simple backup of a site, you would use syntax similar to the following: stsadm.exe -o backup -url http://server_name/site -filename backup.dat To back up a site and overwrite an existing backup file, you would use syntax similar to the following: stsadm.exe -o backup -url http://server_name/site -filename c:\backups\backup.dat -overwrite Using the Restore OperationTo restore a site, you use the restore operation with the Stsadm.exe command-line tool. The restore operation takes the same parameters as the backup operation: filename, url, and overwrite. You have three options for restoring sites from a backup.
To restore a site from a backup file, either to a new site or a separate server, you would use syntax similar to the following: stsadm.exe -o restore -url http://server_name/site -filename backup.dat To restore a site from a backup file on a server share, and to overwrite any existing site at the new location, you would use syntax similar to the following: stsadm.exe -o restore -url http://server_name/site -filename \\share\folder\backup.dat -overwrite |