New-VBRUnstructuredBackupSecondaryTarget
Short Description
Creates secondary backup repository for file backup jobs and object storage backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
AllParameterSets (Default)New-VBRUnstructuredBackupSecondaryTarget -BackupRepository <CBackupRepository>
[-CustomRetentionType <VBRUnstructuredBackupShortTermRetentionType>] [-CustomRetentionPeriod <Int32>]
[-BackupWindow <VBRBackupWindowOptions>] [-GfsPolicyOptions <VBRComputerGFSOptions>] [<CommonParameters>]
-
EncryptionKeyNew-VBRUnstructuredBackupSecondaryTarget -BackupRepository <CBackupRepository>
[-CustomRetentionType <VBRUnstructuredBackupShortTermRetentionType>] [-CustomRetentionPeriod <Int32>]
[-CustomEncryptionKey <VBREncryptionKey>] [-BackupWindow <VBRBackupWindowOptions>]
[-GfsPolicyOptions <VBRComputerGFSOptions>] [<CommonParameters>]
-
KmsServerNew-VBRUnstructuredBackupSecondaryTarget -BackupRepository <CBackupRepository>
[-CustomRetentionType <VBRUnstructuredBackupShortTermRetentionType>] [-CustomRetentionPeriod <Int32>]
[-CustomKMSServer <VBRKMSServer>] [-BackupWindow <VBRBackupWindowOptions>]
[-GfsPolicyOptions <VBRComputerGFSOptions>] [<CommonParameters>]
Detailed Description
This cmdlet creates secondary backup repository. This repository will keep copies of backup files that were created by file backup jobs and object storage backup jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BackupRepository |
Specifies the backup repository that you want to add as a secondary backup repository to a file backup job or an object storage job.
Accepts the |
|
True |
Named |
False |
|
BackupWindow |
Specifies backup window settings. Veeam Backup & Replication will create copies of backups that were created by file backup jobs or an object storage job according to these settings.
Accepts the |
False |
Named |
False |
|
|
CustomEncryptionKey |
Specifies an encryption key. Veeam Backup & Replication will use this key to encrypt data that is stored on the secondary repository. Note: If you do not specify this parameter, Veeam Backup & Replication will apply an encryption key that is set to the file backup job or an object storage job.
Accepts the |
|
False |
Named |
False |
|
CustomKMSServer |
Specifies a KMS server. Veeam Backup & Replication will use keys generated by this KMS server to encrypt data that is stored on the secondary repository. Note: If you do not specify this parameter, Veeam Backup & Replication will use the KMS server that is set to the file backup job or an object storage job.
Accepts the |
False |
Named |
False |
|
|
CustomRetentionPeriod |
For the Specifies the period of time to keep data on the secondary repository. When this period is passed, Veeam Backup & Replication will move data to the long-term repository. |
|
False |
Named |
False |
|
CustomRetentionType |
Specifies a retention policy for the secondary repository. You can set retention policy to either of the following periods:
Use the Note: If you do not specify this parameter, Veeam Backup & Replication will apply the retention policy of the file backup job or an object storage job to the secondary repository. |
|
False |
Named |
False |
|
GfsPolicyOptions |
Specifies a GFS retention policy for the secondary repository.
Accepts the |
|
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 VBRUnstructuredBackupSecondaryTarget object that contains settings of secondary backup repositories.
Examples
Example 1. Creating Backup Repository
|
This example shows how to create a secondary backup repository with the following settings:
Perform the following steps:
|
Example 2. Creating Backup Repository with Custom Retention Policy
|
This example shows how to create a secondary backup repository with the custom retention policy. Veeam Backup & Replication will keep versions of backup files on the secondary backup repository for 7 days.
Perform the following steps:
|
Example 3. Creating Backup Repository with Backup Window
|
This example shows how to create a secondary backup repository. Veeam Backup & Replication will copy data to the secondary repository according to the following schedule:
Perform the following steps:
|
Related Commands
Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRBackupWindowOptionsDefines backup window settings for a job.