Set-VBRNASBackupVersionRetentionOptions (obsolete)
Short Description
Modifies version-based retention policy settings that will be applied for the file backup job.
Note |
|
This cmdlet is obsolete. Run the |
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRNASBackupVersionRetentionOptions -Options <VBRNASBackupVersionRetentionOptions> [-VersionRetentionType <VBRNASBackupVersionRetentionType>] [-EnableActiveFileVersionRetention] [-ActiveFileVersionRetention <Int32>] [-EnableDeletedFileVersionRetention] [-DeletedFileVersionRetention <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies version-based retention policy settings that will be applied for the file backup job.
For file backups, Veeam Backup & Replication allows defining retention settings not only as the number of restore points to keep, but also as the number of file versions to keep.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ActiveFileVersionRetention |
Specifies the number of active file versions. Veeam Backup & Replication will keep the specified number of file versions for active (not deleted) files. Once the number of file versions exceeds, Veeam Backup & Replication will remove the oldest file version from the repository. Note: If you do not specify this parameter, the number of file versions for active files is set to unlimited. Veeam Backup & Replication will delete file versions for active files from the backup repository after the specified retention period passes.
Default: |
|
False |
Named |
False |
|
DeletedFileVersionRetention |
Specifies the number of file versions for deleted files. Veeam Backup & Replication will keep the specified number of file versions for deleted files. Once the number of file versions exceeds, Veeam Backup & Replication will remove the oldest version from the repository. Note: If you do not specify this parameter, the number of file versions for deleted files is set to unlimited. Veeam Backup & Replication will remove files versions for deleted files from the backup repository after the specified retention period passes.
Default: |
|
False |
Named |
False |
|
EnableActiveFileVersionRetention |
Defines that the cmdlet will enable the version-based retention for active files. |
|
False |
Named |
False |
|
EnableDeletedFileVersionRetention |
Defines that the cmdlet will enable the version-based retention for deleted files. |
|
False |
Named |
False |
|
Options |
Specifies the retention policy for file versions. The cmdlet will modify the settings of this policy.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
VersionRetentionType |
Specifies to what repositories the version-based retention policy will be applied. You can specify either of the following filter settings:
Note: If you do not specify this parameter, version-based retention policy settings are applied by default both to backup and archive repositories. |
|
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 VBRNASBackupVersionRetentionOptions object that contains version-based retention settings that will be added to the file backup job.
Examples
Example 1. Modifying Retention Policy for File Versions of Active Files in Archive Repository
|
This example shows how to modify retention policy for file versions of active files. Only the archive repository will keep use version-based retention, and will keep the last 14 versions of active files.
Perform the following steps:
|
Example 2. Modifying Retention Policy for File Versions of Active and Deleted Files in Backup and Archive Repositories
|
This example shows how to enable the version-based retention settings for active files and it for deleted files. The version-based retention settings applies to the backup and archive repository and they will keep file versions of active files for 21 days and deleted files for 7 days.
Perform the following steps:
|
Related Commands
New-VBRNASBackupVersionRetentionOptionsDefines version-based retention policy settings that will be applied for the file backup job. This cmdlet is obsolete. Run the New-VBRUnstructuredBackupVersionRetentionOptions cmdlet instead.