Remove-VBRCloudTenantBackup
Short Description
Removes selected backups of tenants from disk.
Note |
|
If the four-eyes authorization is enabled, you cannot run this cmdlet. For more information, see the Four-Eyes Authorization section in the User Guide for VMware vSphere. |
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Remove-VBRCloudTenantBackup [-CloudTenantBackup] <VBRCloudTenantBackup[]> [-IncludeGFS] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet removes selected backups of AD tenants and tenants managed by the Service Provider.
If the backups that you plan to remove are associated with an active job, perform the following steps:
- Before you run this cmdlet, disable the tenant. To do this, run the
Disable-VBRCloudTenantDisables cloud tenant accounts. cmdlet. - After the backup removal is finished, enable the tenant. To do this, run the
Enable-VBRCloudTenantEnables disabled cloud tenant accounts. cmdlet. - Ask the tenant to rescan the service provider to update the information.
Important |
|
Do not use this cmdlet with immutable backups. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CloudTenantBackup |
Specifies the array of tenant backups you want to remove.
Accepts the |
True |
0 |
True (ByPropertyName, ByValue) |
|
|
IncludeGFS |
Defines that the cmdlet will remove backups with GFS flags (weekly, monthly and yearly). |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Confirm |
Defines whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.
Note: Microsoft PowerShell enables the |
|
False |
Named |
False |
|
WhatIf |
Defines whether the cmdlet writes 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.
Examples
Removing Orphaned Backups of Cloud Tenant Account
This example shows how to remove orphaned backups for the ABC Company cloud tenant account.
|
$tenant = Get-VBRCloudTenant -Name "ABC Company" $backupfiles = Get-VBRCloudTenantBackup -All -Tenant $tenant | Where-Object {$_.IsOrphaned -eq $true} Remove-VBRCloudTenantBackup -CloudTenantBackup $backupfiles |
Perform the following steps:
- Run the
Get-VBRCloudTenantReturns cloud tenant accounts. cmdlet. Specify theNameparameter value. Save the result to the$tenantvariable. - Run the
Get-VBRCloudTenantBackupcmdlet. Specify the following settings:- Provide the
Allparameter. - Set the
$tenantvariable as theTenantparameter value. - Pipe the cmdlet output to the
Where-Objectcmdlet and specify theIsOrphanedvalue to equal$true. - Save the result to the
$backupfilesvariable.
- Provide the
- Run the
Remove-VBRCloudTenantBackupcmdlet. Set the$backupfilesvariable as theCloudTenantBackupparameter value.
Related Commands
Get-VBRCloudTenantReturns cloud tenant accounts.Get-VBRCloudTenantBackupReturns backups of AD tenants and tenants managed by the Service Provider.