Retry-VBRCopyUnstructuredBackupSession

Short Description

Retries failed copy sessions for backups created by file backup jobs and object storage backup jobs.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Retry-VBRCopyUnstructuredBackupSession -Session <VBRSession> [-RunAsync] [<CommonParameters>]

Detailed Description

This cmdlet retries failed copy sessions for backups created by file backup jobs and object storage backup jobs. Data that was already copied is not copied again.

Note: You cannot retry a copy session in the following cases:

  • The session is still running or has completed successfully.
  • A retry of the same copy operation is already running.
  • The copy operation has already been completed by another retry.
  • The target repository no longer exists.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

Session

Specifies the failed copy session.

Accepts the VBRSession object. To get this object, run the Copy-VBRUnstructuredBackupCopies backups created by file backup jobs and object storage backup jobs to another location. cmdlet.

VBRSession

True

Named

True (ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VBRSession object that contains settings of the new copy session.

Examples

Retrying Failed Copy Session

This example shows how to retry a failed copy session.

$backup = Get-VBRUnstructuredBackup -Name "File Backup Job"

$repository = Get-VBRBackupRepository -Name "Backup Repository 02"

$session = Copy-VBRUnstructuredBackup -Backup $backup -BackupRepository $repository

Retry-VBRCopyUnstructuredBackupSession -Session $session

Perform the following steps:

  1. Run the Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs. cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
  2. Run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify the Name parameter value. Save the result to the $repository variable.
  3. Run the Copy-VBRUnstructuredBackupCopies backups created by file backup jobs and object storage backup jobs to another location. cmdlet. Set the $backup variable as the Backup parameter value. Set the $repository variable as the BackupRepository parameter value. Save the result to the $session variable.
  4. Run the Retry-VBRCopyUnstructuredBackupSession cmdlet. Set the $session variable as the Session parameter value.

Page updated 2026-11-18

Page content applies to build 13.2.0.193