This is an archive version of the document. To get the most up-to-date information, see the current version.

Add-VBRBackupRepository

Short Description

Adds a backup repository to the backup infrastructure.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides parameter sets that allow you to:

  • Add a repository without authentication.

Add-VBRBackupRepository -Folder <String> -Type <VBRRepositoryType> [-ImmutabilityPeriod <Int32>] [-EnableBackupImmutability <SwitchParameter>] [-EnableXFSFastClone <SwitchParameter>] [-DDBoostEncryptionType <VBRDDBoostEncryptionType>] [-UsePerVMFile <SwitchParameter>] [-DecompressDataBlocks <SwitchParameter>] [-AlignDataBlocks <SwitchParameter>] [-DataRateLimit <Int32>] [-LimitDatarate <SwitchParameter>] [-MaxConcurrentJobs <Int32>] [-LimitConcurrentJobs <SwitchParameter>] [-StoreOnceWanLink <SwitchParameter>][-StoreOnceServerName <String>] [-DDServerName <String>] [-MountPort <Int32>] [-VPowerNFSPort <Int32>] [-MountFolder <String>] [-RotatedDrive <SwitchParameter>] [-ImportBackup <SwitchParameter>] [-ImportIndex <SwitchParameter>] [-MountServer <CHost>] [-Server <CHost>] [-Description <String>] [-Name <String>] [-NFSRepositoryEncoding <VBRNASEncoding>] [-Force <SwitchParameter>] [<CommonParameters>]

  • Add a repository with a user name and password.

Add-VBRBackupRepository -Folder <String> -Type <VBRRepositoryType> [-ImmutabilityPeriod <Int32>] [-EnableBackupImmutability <SwitchParameter>] [-EnableXFSFastClone <SwitchParameter>] [-DDBoostEncryptionType <VBRDDBoostEncryptionType>] [-UsePerVMFile <SwitchParameter>] [-DecompressDataBlocks <SwitchParameter>] [-AlignDataBlocks <SwitchParameter>] [-DataRateLimit <Int32>] [-LimitDatarate <SwitchParameter>] [-MaxConcurrentJobs <Int32>] [-LimitConcurrentJobs <SwitchParameter>] [-Password <String>] [-UserName <String>] [-StoreOnceWanLink <SwitchParameter>] [-StoreOnceServerName <String>] [-DDServerName <String>] [-MountPort <Int32>] [-VPowerNFSPort <Int32>] [-MountFolder <String>] [-RotatedDrive <SwitchParameter>] [-ImportBackup <SwitchParameter>] [-ImportIndex <SwitchParameter>] [-MountServer <CHost>] [-Server <CHost>] [-Description <String>] [-Name <String>] [-NFSRepositoryEncoding <VBRNASEncoding>] [-Force <SwitchParameter>] [<CommonParameters>]

  • Add a repository using credentials.

Add-VBRBackupRepository -Folder <String> -Type <VBRRepositoryType> [-ImmutabilityPeriod <Int32>] [-EnableBackupImmutability <SwitchParameter>] [-EnableXFSFastClone <SwitchParameter>] [-DDBoostEncryptionType <VBRDDBoostEncryptionType>] [-UsePerVMFile <SwitchParameter>] [-DecompressDataBlocks <SwitchParameter>][-AlignDataBlocks <SwitchParameter>] [-DataRateLimit <Int32>] [-LimitDatarate <SwitchParameter>] [-MaxConcurrentJobs <Int32>] [-LimitConcurrentJobs <SwitchParameter>] [-Credentials <CCredentials>] [-StoreOnceWanLink <SwitchParameter>] [-StoreOnceServerName <String>] [-DDServerName <String>] [-MountPort <Int32>] [-VPowerNFSPort <Int32>] [-MountFolder <String>] [-RotatedDrive <SwitchParameter>] [-ImportBackup <SwitchParameter>] [-ImportIndex <SwitchParameter>] [-MountServer <CHost>] [-Server <CHost>] [-Description <String>] [-Name <String>] [-NFSRepositoryEncoding <VBRNASEncoding>] [-Force <SwitchParameter>] [<CommonParameters>]

Detailed Description

This cmdlet adds a new backup repository to the backup infrastructure.

To add a scale-out backup repository, run the Add-VBRScaleOutBackupRepository cmdlet.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Folder

Specifies the full path to the folder where you want to store the backups.

String

True

Named

False

Type

Specifies the type you want to assign to the repository:

  • WinLocal
  • LinuxLocal
  • CifsShare
  • ExaGrid
  • DataDomain
  • HPStoreOnceIntegration
  • Quantum
  • Nfs

VBRRepositoryType

True

Named

False

ImmutabilityPeriod

For the immutability option.

Defines a number of days within which Veeam Backup & Replication will not delete blocks of data from the backup repository.

Default: 30 days.

Int32

False

Named

False

EnableBackupImmutability

Enables the immutability option for a backup repository.

SwitchParameter

False

Named

False

NFSRepositoryEncoding

Specifies encoding for NFS share. You can specify either of the following values:

  • utf
  • ansi

VBRNASEncoding

False

Named

False

Force

Defines that the cmdlet will add a backup repository without showing warnings in the PowerShell console.

SwitchParameter

False

Named

False

Name

Specifies the name you want to assign to the new backup repository.

String

False

Named

False

Description

Specifies the description of the backup repository.

String

False

Named

False

Server

Specifies the host where the backup repository you want to add is located.

Use this parameter to explicitly set the host for the following repository types:

  • WinLocal: to specify a Windows based server where you want to create the backup repository or to which you want to connect the rotated drives.
  • LinuxLocal type: to specify a Linux based server where you want to create the backup repository or to which you want to connect the rotated drives.
  • CifsShare, DataDomain or HPStoreOnce: to specify a Windows based server to which the storage appliance is connected and which will be used as a gateway server.

Default: This server.

Accepts the CHost[] object. To get this object, run the Get-VBRServer cmdlet.

False

Named

False

MountServer

Specifies the mount server associated with the backup repository. You can assign the mount server role to the backup repository itself or to a server that resides close to the backup repository.

Accepts the CHost object. To create this object, run the Get-VBRServer cmdlet.

False

Named

False

ImportIndex

Defines that the cmdlet will import the guest OS file system index.

SwitchParameter

False

Named

False

ImportBackup

Defines that the cmdlet will import backups that are currently located on the server you are adding as repository.

SwitchParameter

False

Named

False

RotatedDrive

Defines that the repository you want to add is a rotated drive (removable media).

SwitchParameter

False

Named

False

MountFolder

Specifies the path to the mount folder. Veeam Backup & Replication will use this folder to mount VM disks  and to keep write cache data.

String

False

Named

False

VPowerNFSPort

Specifies the port number of the vPower NFS Service. Veeam Backup & Replication will set up a direct connection between the backup repository and ESXi to which the vPower NFS datastore is mounted.

Default: 2049.

Int32

False

Named

False

MountPort

Specifies the port number of the mount server.

Default: 1058.

Int32

False

Named

False

DDServerName

Specifies the Data Domain server name. Enter the name in the following formats depending on the connection mode:

  • If Dell EMC Data Domain works over TCP/IP, enter a full DNS name or an IP address of the Dell EMC Data Domain server.
  • If Dell EMC Data Domain works over Fibre Channel, enter a name of the Data Domain server starting with the 'DFC-' prefix, for example, DFC-DataDomain690.

String

False

Named

False

StoreOnceServerName

Specifies the HPE StoreOnce server name.

String

False

Named

False

StoreOnceWanLink

Defines that the HPE StoreOnce must use source-side deduplication.

SwitchParameter

False

Named

False

LimitConcurrentJobs

Defines that the number of concurrent jobs using this repository must be limited.

Use the MaxConcurrentJobs parameter to set the maximum value.

SwitchParameter

False

Named

False

MaxConcurrentJobs

Used for setting maximum value for the LimitConcurrentJobs parameter.

Specifies the maximum allowed number of concurrent tasks for the backup repository.

Permitted values: 1 to 99.

Int32

False

Named

False

LimitDatarate

Defines that the total speed of writing data to the backup repository disk must be restricted.

Use the DataRateLimit parameter to set the maximum value.

SwitchParameter

False

Named

False

DataRateLimit

Used for setting combined data ingestion rate for the LimitDatarate parameter.

Specifies the combined data ingestion rate for the repository.

Permitted value: 1 to 1024 (MByte/s).

Int32

False

Named

False

AlignDataBlocks

Defines that the backup blocks size will be aligned by a 4Kb block boundary. Data alignment provides better deduplication on storage systems with fixed block size.

SwitchParameter

False

Named

False

DecompressDataBlocks

Defines that the backup data blocks must be decompressed before storing to the repository.

SwitchParameter

False

Named

False

UsePerVMFile

Defines that the backup repository must create per-VM backup files.

SwitchParameter

False

Named

False

DDBoostEncryptionType

Specifies the native Dell EMC Data Domain encryption level:

  • High
  • Medium
  • None

VBRDDBoostEncryptionType

False

Named

False

UserName

Specifies the user name you want to use for authenticating with the backup repository host.

String

False

Named

False

Password

Specifies the password you want to use for authenticating with the backup repository host.

String

False

Named

False

Credentials

Specifies credentials you want to use for authenticating with the backup repository host.

Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet.

False

Named

False

EnableXFSFastClone

Enables the Fast Clone technology for the backup repository.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the CBackupRepository object that contains settings of backup repositories added to the backup infrastructure.

Examples

Add-VBRBackupRepositoryExample 1. Adding Windows Server as Backup Repository

Add-VBRBackupRepositoryExample 2. Adding Linux Server as Backup Repository

Add-VBRBackupRepositoryExample 3. Adding SMB (CIFS) Shared Folder as Backup Repository

Add-VBRBackupRepositoryExample 4. Adding Dedupe Storage Aplliance as Backup Repository

Add-VBRBackupRepositoryExample 5. Adding Backup Repository on Rotated Drive

Add-VBRBackupRepositoryExample 6. Adding Quantum DXi Storage Appliance as Backup Repository

Add-VBRBackupRepositoryExample 7. Adding ExaGrid Share as Backup Repository

Add-VBRBackupRepositoryExample 8. Adding HPE StoreOnce as Backup Repository

Related Commands