New-VBRComputerGFSOptions
Short Description
Defines settings of GFS retention for Veeam Agent backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRComputerGFSOptions [-GFSWeeklyOptions <VBRComputerGFSWeeklyOptions>] [-GFSMonthlyOptions <VBRComputerGFSMonthlyOptions>] [-GFSYearlyOptions <VBRComputerGFSYearlyOptions>] [-ReadEntireRestorePoint] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRComputerGFSOptions object. This object contains GFS retention settings that you can apply to Veeam Agent backup jobs.
For more information on GFS retention, see the GFS Retention Policy section of the User Guide for VMware vSphere.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
GFSMonthlyOptions |
Specifies settings of a monthly GFS retention. The cmdlet will define GFS retention with these settings.
Accepts the |
|
False |
Named |
False |
|
GFSWeeklyOptions |
Specifies settings of a weekly GFS retention. The cmdlet will define GFS retention with these settings.
Accepts the |
|
False |
Named |
False |
|
GFSYearlyOptions |
Specifies settings of a yearly GFS retention. The cmdlet will define GFS retention with these settings.
Accepts the |
|
False |
Named |
False |
|
ReadEntireRestorePoint |
Defines that the cmdlet will process the most recent restore point instead of waiting for the current backup file to become available. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRComputerGFSOptions object that contains settings of GFS retention for Veeam Agent backup jobs.
Examples
Defining GFS Retention Policy for Veeam Agent Backup Jobs
This example shows how to define GFS retention settings for Veeam Agent backup jobs. The cmdlet will define the GFS retention with the following weekly, monthly and yearly settings:
- Weekly: every Wednesday, keep backups for 3 weeks.
- Monthly: every first week of the month, keep backups for 3 months.
- Yearly: every November, keep backups for 2 years.
|
$weekly = New-VBRComputerGFSWeeklyOptions -RetentionPeriod 3 -SelectedDay Wednesday $monthly = New-VBRComputerGFSMonthlyOptions -RetentionPeriod 3 -SelectedWeek First $yearly = New-VBRComputerGFSYearlyOptions -RetentionPeriod 2 -SelectedMonth November New-VBRComputerGFSOptions -GFSWeeklyOptions $weekly -GFSMonthlyOptions $monthly -GFSYearlyOptions $yearly |
Perform the following steps:
- Run the
New-VBRComputerGFSWeeklyOptionsDefines settings of the weekly GFS retention policy for Veeam Agent backup jobs. cmdlet. Specify theRetentionPeriodand theSelectedDayparameter values. Save the result to the$weeklyvariable. - Run the
New-VBRComputerGFSMonthlyOptionsSpecifies settings of the monthly GFS retention policy for Veeam Agent backup jobs. cmdlet. Specify theRetentionPeriodand theSelectedWeekparameter values. Save the result to the$monthlyvariable. - Run the
New-VBRComputerGFSYearlyOptionsDefines settings of the yearly GFS retention policy for Veeam Agent backup jobs. cmdlet. Specify theRetentionPeriodand theSelectedMonthparameter values. Save the result to the$yearlyvariable. - Run the
New-VBRComputerGFSOptionscmdlet. Specify the following settings:- Set the
$weeklyvariable as theGFSWeeklyOptionsparameter value. - Set the
$monthlyvariable as theGFSMonthlyOptionsparameter value. - Set the
$yearlyvariable as theGFSYearlyOptionsparameter value.
- Set the
Related Commands
New-VBRComputerGFSWeeklyOptionsDefines settings of the weekly GFS retention policy for Veeam Agent backup jobs.New-VBRComputerGFSMonthlyOptionsSpecifies settings of the monthly GFS retention policy for Veeam Agent backup jobs.New-VBRComputerGFSYearlyOptionsDefines settings of the yearly GFS retention policy for Veeam Agent backup jobs.