Simple and GFS Retention Policies
You can define the following retention policy options for the job:
Short-Term Retention Policy Options
Short-term retention policy options must be defined in the SimpleRetentionPolicy element of the BackupJobInfo element.
Short-term retention policy options are provided in the following format:
XML Representation
<SimpleRetentionPolicy> |
JSON Representation
"SimpleRetentionPolicy": { |
You can define the following short-term retention policy options for the job:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
RetainCycles | Int64 | Number restore points to keep. | Yes | 0/1 |
RetainDaysToKeep | Int64 | Number of days for which to keep restore points. | Yes | 0/1 |
RetainLimitType | String | Defines whether to keep a specific number of restore points or restore points created during a specific number of days: Possible values:
| Yes | 0/1 |
Long-term (GFS) retention policy options must be defined in the GFSRetentionPolicy element of the BackupJobInfo element.
GFS retention policy options are provided in the following format:
XML Representation
<GfsRetentionPolicy Enabled="true"> |
JSON Representation
"GfsRetentionPolicy": { |
You can define the following GFS retention policy options for the job:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Weekly | WeeklyOptionsInfoType | Weekly GFS retention policy options set for the job. For details, see Weekly GFS Retention Policy Options. | Yes | 0/1 |
Monthly | MonthlyOptionsInfoType | Monthly GFS retention policy options set for the job. For details, see Monthly GFS Retention Policy Options. | Yes | 0/1 |
Yearly | YearlyOptionsInfoType | Yearly GFS retention policy options set for the job. For details, see Yearly GFS Retention Policy Options. | Yes | 0/1 |
Weekly GFS Retention Policy Options
Weekly GFS retention policy options are provided in the following format:
XML Representation
<Weekly> |
JSON Representation
"Weekly": { |
You can define the following weekly GFS retention policy options for the job:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Enabled | Boolean | Defines whether weekly GFS retention policy settings are enabled. | Yes | 0/1 |
RetentionPeriod | Int64 | Number of weeks to keep full backups for archival purposes. | Yes | 0/1 |
SelectedDay | String | Day of the week when the full backup that will be kept for archival purposes is created. Possible values:
| Yes | 0/1 |
Monthly GFS Retention Policy Options
Monthly GFS retention policy options are provided in the following format:
XML Representation
<Monthly> |
JSON Representation
"Monthly": { |
You can define the following monthly GFS retention policy options for the job:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Enabled | Boolean | Defines whether monthly GFS retention policy settings are enabled. | Yes | 0/1 |
RetentionPeriod | Int64 | Number of months to keep full backups for archival purposes. | Yes | 0/1 |
SelectedWeek | String | Week of the month when the full backup that will be kept for archival purposes is created. Possible values:
| Yes | 0/1 |
Yearly GFS Retention Policy Options
Yearly GFS retention policy options are provided in the following format:
<Yearly> |
JSON Representation
"Yearly": { |
You can define the following yearly GFS retention policy options for the job:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Enabled | Boolean | Defines whether yearly GFS retention policy settings are enabled. | Yes | 0/1 |
RetentionPeriod | Int64 | Number of years to keep full backups for archival purposes. | Yes | 0/1 |
SelectedMonth | String | Month when the full backup that will be kept for archival purposes is created. Possible values:
| Yes | 0/1 |