This is an archive version of the document. To get the most up-to-date information, see the current version.

Export-VESPItem

In this article

    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.

    Export-VESPItem Note:

    Mind 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-VBRSharePointItemRestoreSession.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    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.

    1. Run the Get-VBRApplicationRestorePoint cmdlet to get a restore point. Save the result to the $restorepoint variable.
    2. Run the Start-VBRSharePointItemRestoreSession cmdlet with the $restorepoint variable to start a restore session. Save the result to the $session variable.
    3. 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.
    4. 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.
    5. 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.
    6. 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