--- title: "Set-VBRUnstructuredBackupSecondaryTarget" description: "This cmdlet modifies settings of secondary backup repositories. These repositories will keep copies of backup files that were created by file backup jobs and object storage backup jobs." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/set-vbrunstructuredbackupsecondarytarget.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Unstructured Data Backup > Working with Unstructured Data Source Jobs > Managing Backup Jobs for Protecting Unstructured Data > Set-VBRUnstructuredBackupSecondaryTarget" dateModified: "2026-08-19" --- # Set-VBRUnstructuredBackupSecondaryTarget ## Short Description Modifies settings of secondary backup repositories. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets:
AllParameterSets (Default)
EncryptionKey
KmsServer
|
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 |
|
False |
Named |
False |
|
BackupWindow |
Specifies backup window settings. Veeam Backup & Replication will create copies of backups that were created by file backup jobs or object storage jobs 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 for file backup jobs or object storage jobs. 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 file backup jobs or object storage jobs to the secondary repository. |
|
False |
Named |
False |
|
EnableBackupWindow |
Defines that the cmdlet will enable the backup window option. If you provide this parameter, Veeam Backup & Replication will create copies of backups that were created by file backup jobs or object storage jobs according to these settings. Otherwise, Veeam Backup & Replication will copy data to the repository continuously. |
|
False |
Named |
False |
|
EnableCustomRetention |
Defines that the cmdlet will enable the custom retention policy. If you provide this parameter, Veeam Backup & Replication will apply this policy for backups located on the secondary backup repository. Otherwise, Veeam Backup & Replication will apply the retention policy of file backup jobs or object storage jobs to the secondary repository. |
|
False |
Named |
False |
|
GfsPolicyOptions |
Specifies a GFS retention policy for the secondary repository. Accepts the |
|
False |
Named |
False |
|
SecondaryTarget |
Specifies the secondary backup repository. The cmdlet will modify this repository. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
UseCustomEncryptionKey |
Defines that the cmdlet will enable the use of custom data encryption settings. |
|
False |
Named |
False |