Export a site, list, or document library (Search Server 2010)
Applies to: Search Server 2010
Topic Last Modified: 2010-04-13
We recommend that you regularly back up the complete farm. However, business or IT requirements might require that you export a site, such as a Search Center site. Regularly exporting Search Center or other sites reduces data losses that might occur from hardware failures, power outages, or other problems. It is a simple process and helps to ensure that data is available for recovery, if that is required. You can export sites, lists, or document libraries, but you can only export one at a time.
Procedures in this task:
To export a site, list or document library by using Windows PowerShell
To export a site, list or document library by using Central Administration
You cannot use SQL Server tools or Data Protection Manager to export a site, list or document library.
Before you begin, you must create a folder on the local computer or the network in which to store the export file. For better performance, we recommend that you export to the local computer and then move the export file to a network folder.
Use Windows PowerShell to export a site, list, or document library
You can use Windows PowerShell to export a site, list, or document library manually or as part of a script that can be run at scheduled intervals.
To export a site, list, or document library by using Windows PowerShell
Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
In the SharePoint 2010 Management Shell, at the Windows PowerShell command prompt, type the following command:
Export-SPWeb -Identity <ID> -Path <PathName> -IncludeUserSecurity -IncludeVersions -NoFileCompression -Verbose
<ID> is the URL or GUID of the site, list, or library.
<PathName> is the Universal Naming Convention (UNC) path and the name of the file to which you want to export the list or library.
This command uses the IncludeVersions parameter for which you must specify one of the following values:
This command also uses the IncludeUserSecurity parameter to include the user security settings in the site.
The NoFileCompression parameter lets you specify that no file compression is performed during the export process. Using this parameter can lower resource usage up to 30% during the export process. Using this parameter will result in a backup folder being created instead of a compressed file. If you use the NoFileCompression parameter in the Export-SPWeb command, you must also use it when you import the content by using the Import-SPWeb command.
For more information, see Export-SPWeb.
If you do not use the Verbose parameter, the Command Prompt window displays no message if the operation succeeds. If the job does not finish successfully, the Command Prompt window displays an error message such as the following:
Export-SPWeb: <Error Message>. The operation failed: At line: <line> char:<column>.+ export-spweb <<<< <parameters>
If there are errors or warnings, or if the backup does not finish successfully, review the <file name>.export.log file in the backup folder.
Use Central Administration to export a site, list, or document library
You can use Central Administration to export a site, list, or document library. You can only export one site, list, or document library at a time.
To export a site, list, or document library by using Central Administration
Verify that the user account that is performing this procedure is a member of the Farm Administrators group.
In Central Administration, on the Home page, click Backup and Restore.
On the Backup and Restore page, in the Granular Backup section, click Export a Site or List.
On the Site or List Export page, in the Site Collection section, select the site collection from the Site Collection list, and then select the site from the Site list.
If you are exporting a site, skip this step: Select the list or document library from the List list.
In the File Location section, in the Filename box, type the UNC path of the shared folder and the file to which you want to export the list or document library. The file name must use the .cmp extension.
If the file already exists and you want to use this file, select the Overwrite existing files check box. Otherwise, specify a different file name.
If you want to export all the security and permissions settings with the site, in the Export Full Security section, select the Export full security check box.
If you want to specify which version of the site to export, select one of the following versions from the Export versions list:
Last Major and Last Minor
When you have specified the settings that you want, click Start Export.
You can view the status of all backup jobs at the top of the Granular Backup Job Status page. You can view the status of the current backup job in the Content Export section of the page. The status page updates every 30 seconds automatically. You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the backup to start.
If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the <file name>.export.log file at the UNC path that you specified in step 4.