--- title: "Get-VBRRetentionPolicy" description: "Returns a retention policy for backup copy jobs. Platform: VMware, Hyper-V Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet returns a retention policy for backup copy jobs of the following types: " canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrretentionpolicy.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Copy > Backup Copy Job of Amazon EC2 Instances > Get-VBRRetentionPolicy" dateModified: "2026-08-19" --- # Get-VBRRetentionPolicy ## Short Description Returns a retention policy for backup copy jobs. **Platform**: VMware, Hyper-V **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VBRRetentionPolicy -Job [] ``` ## Detailed Description This cmdlet returns a retention policy for backup copy jobs of the following types: - Backup copy jobs that process backups stored on external repositories. - Veeam Agent backup copy jobs. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Job

Specifies a backup copy job. The cmdlet will return a retention policy for the specified job.

Accepts the CBackupJob object. To get this object, run the Get-VBRJob cmdlet.

CBackupJob

True

Named

True (ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the `VBRRetentionPolicy` object that contains a retention policy for backup copy jobs. ## Examples ::: example ### Getting Retention Policy for Backup Copy Job This example shows how to get a retention policy for a backup copy job. ``` $job = Get-VBRJob -Name "EC2 BCJ 01" Get-VBRRetentionPolicy -Job $job ``` Perform the following steps: 1. Run the [`Get-VBRJob`](get-vbrjob.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$job` variable. 2. Run the `Get-VBRRetentionPolicy` cmdlet. Set the `$job` variable as the `Job` parameter value. ::: ## Related Commands [`Get-VBRJob`](get-vbrjob.md)