Switch-VBRCloudTenantsQuotaRepositoryToSOBR
Short Description
Switches tenant quotas on the cloud repository to a scale-out backup repository.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Requires a cloud provider license.
Syntax
|
Switch-VBRCloudTenantsQuotaRepositoryToSOBR -Resource <VBRCloudTenantResource> [-Force] -ScaleOutBackupRepository <VBRScaleOutBackupRepository> [<CommonParameters>] |
Detailed Description
This cmdlet switches tenant quotas on the cloud repository to a scale-out backup repository. You can use this cmdlet if you want to move tenant backup data to a scale-out backup repository used as a cloud repository.
Consider the following:
- The cmdlet does not copy the actual backup data from an original cloud repository to a new cloud repository. Instead, it creates folders for tenant data on extents of the scale-out backup repository used as a cloud repository, copies backup metadata to these folders and prompts the user to copy backup files to these folders as well.
Note that either all folders or no folders that are being migrated must exist on the scale-out backup repository. If some tenant folders already exist on the scale-out backup repository, while other folders are missing, the migration process will fail.
- Migration of tenant data from and to object storage used as a cloud repository is not supported.
- Migration to a scale-out backup repository is not possible if at least one extent is in the maintenance mode.
- Names of folders with tenant backup data on the cloud repository must not contain special characters (for example, \/`~,!?#$&|{}[];"<>*) and non-ASCII characters.
- During migration, tenant accounts will be automatically disabled. The service provider must enable the disabled accounts manually once the migration process is completed.
- All subtenants are migrated together with the tenant, it is not possible to migrate only specific subtenants.
- The tenant must not have more than 1 quota assigned.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will switch tenant quotas on the cloud repository to a scale-out backup repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Resource |
Specifies the object that contains the tenant backup resource. The cmdlet will switch this tenant backup resource to a scale-out backup repository.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
ScaleOutBackupRepository |
Specifies the scale-out backup repository where you want to create cloud repository quota for a tenant account.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Switching Tenant Quota on Cloud Repository to Scale-Out Backup Repository
This example shows how to switch tenant quota on the cloud repository to a scale-out backup repository.
|
$repository = Get-VBRBackupRepository -ScaleOut -Name "Veeam Scale-Out Backup Repository" $tenant = Get-VBRCloudTenant -Name "Tenant" $resource = $tenant.Resources Switch-VBRCloudTenantsQuotaRepositoryToSOBR -Resource $resource[2] -ScaleOutBackupRepository $repository |
Perform the following steps:
- Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Provide theScaleOutparameter. Specify theNameparameter value. Save the result to the$repositoryvariable. - Run the
Get-VBRCloudTenantReturns cloud tenant accounts. cmdlet. Specify theNameparameter value. Save the result to the$tenantvariable. - Get the tenant resources. Provide the
Resourcesproperty of the$tenantobject. Save the result to the$resourcevariable.You will get an array of tenant resources. Mind the ordinal number of the necessary tenant resource (in our example, it is the third tenant resource in the array).
- Run the
Switch-VBRCloudTenantsQuotaRepositoryToSOBRcmdlet. Set the$resource[2]variable as theResourceparameter value. Set the$repositoryvariable as theScaleOutBackupRepositoryparameter value. - The cmdlet will prompt you to perform the following operations:
- Confirm that the specified tenant accounts will be disabled.
- Copy tenant backup files to the folders that the cmdlet has created on the scale-out backup repository, and then confirm that the backup files have been copied.
- Confirm that the cmdlet will update tenant backups and cloud repository settings for the tenant account.
- Confirm that the cmdlet will rescan the new cloud repository.
Related Commands
Get-VBRBackupRepositoryReturns a list of backup repositories.Get-VBRCloudTenantReturns cloud tenant accounts.