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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Session |
Specifies the failed copy session.
Accepts the |
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:
- Run the
Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repositoryvariable. - Run the
Copy-VBRUnstructuredBackupCopies backups created by file backup jobs and object storage backup jobs to another location. cmdlet. Set the$backupvariable as theBackupparameter value. Set the$repositoryvariable as theBackupRepositoryparameter value. Save the result to the$sessionvariable. - Run the
Retry-VBRCopyUnstructuredBackupSessioncmdlet. Set the$sessionvariable as theSessionparameter value.
Related Commands
Copy-VBRUnstructuredBackupCopies backups created by file backup jobs and object storage backup jobs to another location.Get-VBRBackupRepositoryReturns a list of backup repositories.Get-VBRUnstructuredBackupReturns backup files created by file backup jobs and object storage backup jobs.