Get-VBRCopyBackupSession
Short Description
Returns copy sessions.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Session (Default)Get-VBRCopyBackupSession [-WhatIf] [-Confirm] [<CommonParameters>]
-
IdGet-VBRCopyBackupSession -Id <Guid> [-WhatIf] [-Confirm] [<CommonParameters>]
-
BackupGet-VBRCopyBackupSession -Backup <VBRBackup> [-WhatIf] [-Confirm] [<CommonParameters>]
-
MachineNameGet-VBRCopyBackupSession -MachineName <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Detailed Description
This cmdlet returns copy sessions.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies the backup for which you want to get copy sessions.
Accepts the |
|
True |
Named |
False |
|
Id |
Specifies the ID of the session. The cmdlet will return the session with this ID. |
|
True |
Named |
False |
|
MachineName |
Specifies the name of the machine for which you want to return the copy sessions. |
|
True |
Named |
False |
|
Confirm |
Defines that the cmdlet will display a prompt that asks if you want to continue running the command. |
|
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 VBRCopyBackupSession[] object that contains settings of the copy session.
Examples
Getting Copy Sessions for Specific Backup
This command returns copy sessions for the Exchange Backup_imported backup.
|
$backup = Get-VBRBackup -Name "Exchange Backup_imported" Get-VBRCopyBackupSession -Backup $backup |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRCopyBackupSessioncmdlet. Set the$backupvariable as theBackupparameter value.
Related Commands
Get-VBRBackupReturns backups.