Export-VESPItem
Short Description
Exports SharePoint Item.
Applies to: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides parameter sets that allow you to:
- To export to the SharePoint list:
Export-VESPItem -List <VESPList> -Path <string> [-Force] [<CommonParameters>] |
- To export to the SharePoint document library:
Export-VESPItem [-DocumentLibrary] <VESPDocumentLibrary> -Path <string> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet exports SharePoint lists and document libraries.
|
Mind the following:
|
Parameters
Parameter | Description | Required | Position | Accept | Accept |
DocumentLibrary | Specifies a SharePoint document library. This cmdlet will export the specified SharePoint document library. | True | Named | True (ByValue) | False |
Force | Indicates that the cmdlet will create a folder in the specified directory and overwrites the existing item with the same name. | False | Named | False | False |
List | Specifies a SharePoint list. This cmdlet will export the specified SharePoint list. | True | Named | True (ByValue) | False |
Path | Specifies a path to the export destination directory. | True | Named | True (ByValue) | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example
[For Veeam Backup & Replication] This example shows how to export the Calendar SharePoint list to the C:\ExportedLists folder.
- Run the Get-VBRApplicationRestorePoint cmdlet to get a restore point. Save the result to the $restorepoint variable.
- Run the Start-VBRSharePointItemRestoreSession cmdlet with the $restorepoint variable to start a restore session. Save the result to the $session variable.
- Run the Get-VESPDatabase cmdlet with the $session variable and the Name parameter to get the WSS_Content.mdf SharePoint database. Save the result to the $database variable.
- Run the Get-VESPSite cmdlet with the $database variable and the Name parameter to get the Home SharePoint site. Save the result to the $site variable.
- Run the Get-VESPList cmdlet with the $site variable and the Name parameter to get the Calendar SharePoint list. Save the result to the $list variable.
- Run the Export-VESPItem cmdlet with the $list variable and the Path parameter to export the Calendar SharePoint list to the C:\ExportedLists folder. Use the Force parameter to overwrite any existing lists with the same name in the target directory.
$restorepoint = Get-VBRApplicationRestorePoint -SharePoint -Name "Sharepoint server" $session = Start-VBRSharePointItemRestoreSession -RestorePoint $restorePoint $database = Get-VESPDatabase -Session $session -Name "WSS_Content.mdf" $site = Get-VESPSite -Database $database -Name "Home" $list = Get-VESPList -Site $site -Name "Calendar" Export-VESPItem -List $list -Path C:\ExportedLists -Force |
Related Commands