Add-VBRGoogleCloudExternalRepository
Short Description
Adds external Google Cloud storage repository to the backup infrastructure.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRGoogleCloudExternalRepository [-Name <String>] [-Description <String>] -GoogleCloudFolder <VBRGoogleCloudFolder> -Connection <VBRGoogleCloudExternalConnection> [-MountServerOptions <VBRRepositoryMountServerOptions[]>] [-DecryptBackups] [-DecryptionKey <VBREncryptionKey>] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet adds external Google Cloud storage repository to the backup infrastructure.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Connection |
Specifies the active session with the Google Cloud storage that you want to add as an external repository.
Accepts the |
|
True |
Named |
False |
|
DecryptBackups |
Defines that Veeam Backup & Replication will decrypt encrypted backups.
Default: |
|
False |
Named |
False |
|
DecryptionKey |
Specifies the password that Veeam Backup & Replication will use to decrypt the backup files. |
|
False |
Named |
False |
|
Description |
Specifies the description of the Google Cloud storage that you want to add as an external repository. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add an external repository without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
GoogleCloudFolder |
Specifies the name of a folder in the external repository. Veeam Backup & Replication will import backups from this folder into the backup infrastructure.
Accepts the |
True |
Named |
True (ByValue) |
|
|
MountServerOptions |
Specifies the mount server settings for the servers that you plan to use as mount servers during the restore process.
Accepts the |
False |
Named |
True (ByPropertyName) |
|
|
Name |
Specifies the name of the Google Cloud storage that you want to add as an external repository. |
|
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 VBRGoogleCloudExternalRepository object that contains settings of external Google Cloud storage repository.
Examples
Adding External Google Cloud Storage
This example shows how to add the Google_Repository Google Cloud storage as an external repository to the backup infrastructure.
|
$account = Get-VBRGoogleCloudAccount -AccessKey "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" $connection = Connect-VBRGoogleCloudService -Account $account $bucket = Get-VBRGoogleCloudBucket -Connection $connection -Region $region $folder = Get-VBRGoogleCloudFolder -Connection $connection -Bucket $bucket Add-VBRGoogleCloudExternalRepository -GoogleCloudFolder $folder -Connection $connection -Name "Google_Repository" |
Perform the following steps:
- Get the Google Cloud folder:
- Run the
Get-VBRGoogleCloudAccountReturns Google Cloud credentials records. cmdlet. Specify theAccessKeyparameter value. Save the result to the$accountvariable. - Run the
Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage. cmdlet. Set the$accountvariable as theAccountparameter value. Save the result to the$connectionvariable. - Run the
Get-VBRGoogleCloudBucketReturns Google Cloud buckets. cmdlet. Set the$connectionvariable as theConnectionparameter value. Set the$regionvariable as theRegionparameter value. Save the result to the$bucketvariable. - Run the
Get-VBRGoogleCloudFolderReturns Google Cloud folders. cmdlet. Set the$connectionvariable as theConnectionparameter value. Set the$bucketvariable as theBucketparameter value. Save the result to the$foldervariable.
- Run the
- Run the
Add-VBRGoogleCloudExternalRepositorycmdlet. Set the$foldervariable as theGoogleCloudFolderparameter value. Set the$connectionvariable as theConnectionparameter value. Specify theNameparameter value.
Related Commands
Get-VBRGoogleCloudAccountReturns Google Cloud credentials records.Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage.Get-VBRGoogleCloudBucketReturns Google Cloud buckets.Get-VBRGoogleCloudFolderReturns Google Cloud folders.