Stop-VBRCopyBackupSession
Short Description
Specifies how to process backups for which a copy session failed.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VBRCopyBackupSession -Session <VBRCopyBackupSession> [-ActionType <VBRBackupMoveCopySessionStopAction>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet specifies how to process backups for which a copy session failed.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ActionType |
Specifies what to do:
|
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Session |
Specifies the copy session that failed (has the User action required status).
Accepts the |
True |
Named |
False |
|
|
Confirm |
Defines that the cmdlet will display a prompt that asks if you want to continue running the command.
Note: Microsoft PowerShell enables the |
|
False |
Named |
False |
|
WhatIf |
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action. |
|
False |
Named |
False |
<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 copy session.
Examples
Canceling Changes Made by Failed Copy Session
This example shows how to cancel all changes made by the copy session of the Exchange Backup backup.
|
$backup = Get-VBRBackup -Name "Exchange Backup" $session = Get-VBRCopyBackupSession -Backup $backup Stop-VBRCopyBackupSession -Session $session -ActionType Undo |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRCopyBackupSessionReturns copy sessions. cmdlet. Set the$backupvariable as theBackupparameter value. Save the result to the$sessionvariable. - Run the
Stop-VBRCopyBackupSessioncmdlet. Specify the following settings:- Set the
$sessionvariable as theSessionparameter value. - Set the
Undovalue for theActionTypeparameter.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRCopyBackupSessionReturns copy sessions.