Export-VESPItem
Short Description
Exports SharePoint items.
Product: Veeam Backup & Replication
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
docLibParameterSet
|
Export-VESPItem [-DocumentLibrary] <VESPDocumentLibrary> -Path <String> [-Force] [<CommonParameters>] |
-
listParameterSet
|
Export-VESPItem [-List] <VESPList> -Path <String> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet exports SharePoint lists and document libraries.
Note |
|
Consider the following:
- This cmdlet is available for backups created with Veeam Backup & Replication.
- Before performing export operations, you must first start a restore session. For more information, see
Start-VBRSharePointItemRestoreSessionStarts restore sessions to explore backed-up Microsoft SharePoint databases and to perform operations with these databases..
|
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
DocumentLibrary
|
Specifies a SharePoint document library. This cmdlet will export the specified SharePoint document library.
Accepts the VESPDocumentLibrary object. To get this object, run the Get-VESPDocumentLibraryReturns SharePoint document libraries. cmdlet.
|
VESPDocumentLibrary
|
True
|
0
|
True (ByValue)
|
|
Force
|
Defines that the cmdlet will create a folder in the specified directory and will overwrite the existing item with the same name.
Default: False
|
SwitchParameter
|
False
|
Named
|
False
|
|
List
|
Specifies a SharePoint list. This cmdlet will export the specified SharePoint list.
Accepts the VESPList object. To get this object, run the Get-VESPListReturns SharePoint lists. cmdlet.
|
VESPList
|
True
|
0
|
True (ByValue)
|
|
Path
|
Specifies a path to the export destination directory.
|
String
|
True
|
Named
|
True (ByValue)
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Examples
Example 1. Exporting SharePoint Document Library [For Veeam Backup & Replication]
|
This example shows how to export the SharePoint document library to the C:\ExportedDocLibrary folder.
|
$session = Get-VBRSharePointItemRestoreSession
$database = Get-VESPDatabase -Session $session -Name "WSS_Content.mdf"
$doclib = Get-VESPDocumentLibrary -Database $database -Name "Document_Library"
Export-VESPItem -DocumentLibrary $doclib -Path "C:\ExportedDocLibrary" -Force |
Perform the following steps:
- Get the SharePoint document library:
- Run the
Get-VBRSharePointItemRestoreSessionReturns active restore sessions started to perform operations with backed-up Microsoft SharePoint databases. cmdlet. Save the result to the $session variable.
- Run the
Get-VESPDatabaseReturns backed-up Microsoft SharePoint databases. cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $database variable.
- Run the
Get-VESPDocumentLibraryReturns SharePoint document libraries. cmdlet. Set the $database variable as the Database parameter value. Specify the Name parameter value. Save the result to the $doclib variable.
- Run the
Export-VESPItem cmdlet. Set the $doclib variable as the DocumentLibrary parameter value. Specify the Path parameter value. Provide the Force parameter.
|
Example 2. Exporting SharePoint List [For Veeam Backup & Replication]
|
This example shows how to export the Calendar SharePoint list to the C:\ExportedLists folder.
|
$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 |
Perform the following steps:
- Get the SharePoint list:
- Run the
Get-VBRApplicationRestorePoint cmdlet. Specify the SharePoint parameter value. Specify the Name parameter value. Save the result to the $restorepoint variable.
- Run the
Start-VBRSharePointItemRestoreSessionStarts restore sessions to explore backed-up Microsoft SharePoint databases and to perform operations with these databases. cmdlet. Set the $restorePoint variable as the RestorePoint parameter value. Save the result to the $session variable.
- Run the
Get-VESPDatabaseReturns backed-up Microsoft SharePoint databases. cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Save the result to the $database variable.
- Run the
Get-VESPSiteReturns SharePoint sites. cmdlet. Set the $database variable as the Database parameter value. Specify the Name parameter value. Save the result to the $site variable.
- Run the
Get-VESPListReturns SharePoint lists. cmdlet. Set the $site variable as the Site parameter value. Specify the Name parameter value. Save the result to the $list variable.
- Run the
Export-VESPItem cmdlet. Set the $list variable as the List parameter value. Specify the Path parameter value. Provide the Force parameter.
|
Related Commands