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

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 VBRGoogleCloudExternalConnection object. To get this object, run the Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage. cmdlet and set the ExternalRepository property as the ServiceType parameter value.

VBRGoogleCloudExternalConnection

True

Named

False

DecryptBackups

Defines that Veeam Backup & Replication will decrypt encrypted backups.

Default: False.

SwitchParameter

False

Named

False

DecryptionKey

Specifies the password that Veeam Backup & Replication will use to decrypt the backup files.

VBREncryptionKey

False

Named

False

Description

Specifies the description of the Google Cloud storage that you want to add as an external repository.

String

False

Named

False

Force

Defines that the cmdlet will add an external repository without showing warnings in the PowerShell console.

SwitchParameter

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 VBRGoogleCloudFolder object. To create this object, run the Get-VBRGoogleCloudFolderReturns Google Cloud folders. cmdlet.

VBRGoogleCloudFolder

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 VBRRepositoryMountServerOptions[] object. To create this object, run the New-VBRRepositoryMountServerOptionsDefines settings of a mount server. cmdlet.

VBRRepositoryMountServerOptions[]

False

Named

True (ByPropertyName)

Name

Specifies the name of the Google Cloud storage that you want to add as an external repository.

String

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:

  1. Get the Google Cloud folder:
    1. Run the Get-VBRGoogleCloudAccountReturns Google Cloud credentials records. cmdlet. Specify the AccessKey parameter value. Save the result to the $account variable.
    2. Run the Connect-VBRGoogleCloudServiceConnects to Google Cloud object storage. cmdlet. Set the $account variable as the Account parameter value. Save the result to the $connection variable.
    3. Run the Get-VBRGoogleCloudBucketReturns Google Cloud buckets. cmdlet. Set the $connection variable as the Connection parameter value. Set the $region variable as the Region parameter value. Save the result to the $bucket variable.
    4. Run the Get-VBRGoogleCloudFolderReturns Google Cloud folders. cmdlet. Set the $connection variable as the Connection parameter value. Set the $bucket variable as the Bucket parameter value. Save the result to the $folder variable.
  2. Run the Add-VBRGoogleCloudExternalRepository cmdlet. Set the $folder variable as the GoogleCloudFolder parameter value. Set the $connection variable as the Connection parameter value. Specify the Name parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18