Freigeben über


Capture and restore content by using the Web site delete event (Search Server 2008)

Draft content This article was published for an earlier version of this product and is being published without changes for this release.

When a site is deleted, SharePoint Products and Technologies generates a Web Delete event. Microsoft IT (MSIT) has created Microsoft IT Site Delete Capture Feature 1.0 to detect and capture the content from the Web Delete event. When a Web Delete event is detected, the feature archives the site to a file share before the site is removed from the configuration database and the content database. Deleted sites are saved as .bak files in the specified backup directory. You then can use the restore Stsadm operation to restore a site. You can also configure the feature to send e-mail messages when a site has been archived and deleted or if the site was unable to be archived. The Microsoft IT Site Delete Capture Feature 1.0 is available from CodePlex governance.

This tool is not part of SharePoint Products and Technologies, and might not be updated. This tool is built on supported Microsoft technologies, but it is not supported by Microsoft.

Capture site content by using the Web delete event

Use the following procedure to set up the Microsoft IT Site Delete Capture Feature 1.0 on each Web server that you want to protect.

Wichtig

Memberships in the Farm Administrators SharePoint group and in the Administrators group on the local computer are the minimum requirements to complete these procedures.

Set up the Microsoft IT Site Delete Capture Feature 1.0

  1. Go to the CodePlex site (https://go.microsoft.com/fwlink/?LinkID=92875&clcid=0x409) and download the Microsoft IT Site Delete Capture Feature 1.0 (Package).zip file.

  2. Extract the files, and then copy the MSITSiteFeature, MSITDeleteFeature, MSITSiteFeatureStapling, and MSITDeleteFeatureStapling feature folders to the following folder: %COMMONPROGRAMFILES%\Microsoft Shared\Web server extensions\12\TEMPLATE\FEATURES.

  3. Copy the MS.IT.SiteDeleteCapture.dll file to the C:\Windows\assembly folder.

  4. Copy the Messages.xml file to the %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\TEMPLATE\LAYOUTS\1033 folder.

    Tipp

    If multiple language packs are installed on the server farm, the Messages.xml file must be copied to each local ID directory within the %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\TEMPLATE\LAYOUTS folder.

  5. On the drive on which SharePoint Products and Technologies is installed, open a command window and change to the following directory: %COMMONPROGRAMFILES%\Microsoft Shared\Web server extensions\12\Bin.

  6. Type the following command, and then press ENTER:
    stsadm -o installfeature -name MSITSiteFeature

  7. Type the following command, and then press ENTER:
    stsadm -o installfeature -name MSITSiteFeatureStapling

  8. Type the following command, and then press ENTER:
    stsadm -o installfeature -name MSITDeleteFeature

  9. Type the following command, and then press ENTER:
    stsadm -o installfeature -name MSITDeleteFeatureStapling

    For more information, see Installfeature: Stsadm-Vorgang (Office SharePoint Server).

  10. Using a text editor, open the following file: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\TEMPLATE\FEATURES\MSITDeleteFeature\ConfigurationForReceiverDLL.xml.

  11. Under the BackupFolder node, specify a value for the backup folder location, and then save and close the file.

  12. On the SharePoint Central Administration Web site, on the Application Management tab, in the SharePoint Web Application Management section, click Manage Web application features.

  13. On the Manage Web Application Features page, click the Activate button next to Microsoft IT Site Delete Capture Feature 1.0. For more information about installing and configuring Microsoft IT Site Delete Capture Feature 1.0, refer to the Microsoft IT Site Delete Capture Feature 1.0 document included with the installation files.

Restore content

Use the following procedure to restore site content that has been deleted and captured by the Microsoft IT Site Delete Capture Feature 1.0.

Wichtig

Membership in the Farm Administrators SharePoint group is the minimum requirement to complete the following procedure.

Restore content from site delete capture

  1. Note the URL of the site you want to restore and the name of the backup file (.bak) that contains the desired content. You do not have to restore the site to the same location from which it was deleted.

  2. On the drive on which SharePoint Products and Technologies is installed, open the command line and change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  3. Type the following command, and then press ENTER:

    stsadm -o restore -url <Intended restore location> -filename <path and file name of backup file>
    When specifying the path to the backup file, you can use either a local or Universal Naming Convention (UNC) path.

    For more information, see Restore: Stsadm-Vorgang (Office SharePoint Server).

Siehe auch

Konzepte

Use alternative methods to back up and restore content (Search Server 2008)
Capture and restore content by using SharePoint Designer (Search Server 2008)
Archive and retrieve content by using Stsadm import and export operations (Search Server 2008)
Archive site versions by using database snapshots (Search Server 2008)