Forget-VBRCloudUnavailableBackupFile
Short Description
Removes backup files, that are no longer available, from a cloud repository.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Forget-VBRCloudUnavailableBackupFile -BackupFiles <VBRCloudUnavailableBackupFile[]> [-IncludeDependentFiles] [<CommonParameters>] |
Detailed Description
This cmdlet removes backup files, that are no longer available, from a cloud repository.
Note |
|
Any restore points on a repository or extent that is inaccessible, on in Maintenance mode, will be considered as unavailable. Before you remove these backup files, check the list of the files that the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupFiles |
Specifies backup files that you want to remove.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
IncludeDependentFiles |
Defines that the cmdlet will remove incremental backup files that are related to the full backup files. If you do not provide this parameter, the cmdlet will not remove full backup files and incremental backup files that are related to these full backup files.
Note: If full backup files that you want to remove do not have incremental backup files, the cmdlet will remove these full backup files even if you do not provide the |
|
False |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Removing Unavailable Backup Files from Cloud Repository
This example shows how to remove backup files that are no longer available from a cloud repository for the ABC Company cloud tenant account. The cmdlet will remove incremental files as well.
|
$tenant = Get-VBRCloudTenant -Name "ABC Company" $backupfiles = Get-VBRCloudUnavailableBackupFile -CloudTenant $tenant Forget-VBRCloudUnavailableBackupFile -BackupFiles $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-VBRCloudUnavailableBackupFileReturns a list of backup files that are marked as unavailable for the specified cloud tenant. cmdlet. Set the$tenantvariable as theCloudTenantparameter value. Save the result to the$backupfilesvariable. - Run the
Forget-VBRCloudUnavailableBackupFilecmdlet. Set the$backupfilesvariable as theBackupFilesparameter value.
Related Commands
Get-VBRCloudTenantReturns cloud tenant accounts.Get-VBRCloudUnavailableBackupFileReturns a list of backup files that are marked as unavailable for the specified cloud tenant.