BackupDRBackupPlan
| Property | Value |
|---|---|
| Google Cloud Service Name | Backup and DR |
| Google Cloud Service Documentation | /backup-disaster-recovery/docs/ |
| Google Cloud REST Resource Name | projects.locations.backupPlans |
| Google Cloud REST Resource Documentation | /backup-dr/docs/reference/rest/v1/projects.locations.backupPlans |
| Config Connector Resource Short Names | gcpbackupdrbackupplan gcpbackupdrbackupplans backupdrbackupplan |
| Config Connector Service Name | backupdr.googleapis.com |
| Config Connector Resource Fully Qualified Name | backupdrbackupplans.backupdr.cnrm.cloud.google.com |
| Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
| Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
backupRules:
- backupRetentionDays: integer
ruleID: string
standardSchedule:
backupWindow:
endHourOfDay: integer
startHourOfDay: integer
daysOfMonth:
- integer
daysOfWeek:
- string
hourlyFrequency: integer
months:
- string
recurrenceType: string
timeZone: string
weekDayOfMonth:
dayOfWeek: string
weekOfMonth: string
backupVaultRef:
external: string
name: string
namespace: string
description: string
location: string
projectRef:
external: string
kind: string
name: string
namespace: string
resourceID: string
resourceType: string
| Fields | |
|---|---|
|
Optional |
Required. The backup rules for this `BackupPlan`. There must be at least one `BackupRule` message. |
|
Optional |
|
|
Optional |
Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. |
|
Optional |
Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`. The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/. |
|
Optional |
Optional. Defines a schedule that runs within the confines of a defined window of time. |
|
Optional |
Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window. Note: running jobs will not be cancelled at the end of the window. |
|
Optional |
Required. The hour of day (1-24) when the window end for example, if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00. |
|
Optional |
Required. The hour of day (0-23) when the window starts. For example, if the value is set to 6, the backup window starts at 6:00 a.m. |
|
Optional |
Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied. |
|
Optional |
|
|
Optional |
Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`. |
|
Optional |
|
|
Optional |
Optional. Specifies frequency for hourly backups. A hourly frequency of 4 means jobs will run every 4 hours from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. Value of hourly frequency should be between 4 and 23. |
|
Optional |
{% verbatim %}Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run. This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied. |
|
Optional |
|
|
Optional |
Required. Specifies the `RecurrenceType` for the schedule. |
|
Optional |
Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For example, Europe/Paris. |
|
Optional |
Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, for example `MONDAY`, and one for the week, for example `LAST`. This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied. |
|
Optional |
Required. Specifies the day of the week. |
|
Optional |
Required. Specifies the week of the month. |
|
Required |
Required. Resource name of backup vault which will be used as storage location for backups. |
|
Optional |
A reference to an externally managed BackupDRBackupVault resource. Should be in the format "projects/{{projectID}}/locations/{{location}}/backupVaults/{{backupvaultID}}". |
|
Optional |
The name of a BackupDRBackupVault resource. |
|
Optional |
The namespace of a BackupDRBackupVault resource. |
|
Optional |
Optional. The description of the `BackupPlan` resource. The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: "This is a backup plan that performs a daily backup at 6pm and retains data for 3 months". The description must be at most 2048 characters. |
|
Required |
Immutable. |
|
Required |
The Project that this resource belongs to. |
|
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
|
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
|
Optional |
The `name` field of a `Project` resource. |
|
Optional |
The `namespace` field of a `Project` resource. |
|
Optional |
The BackupDRBackupPlan name. If not given, the metadata.name will be used. |
|
Optional |
Required. The resource type to which the `BackupPlan` will be applied. Examples include "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster". |
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
externalRef: string
observedGeneration: integer
observedState:
backupVaultServiceAccount: string
createTime: string
state: string
updateTime: string
| Fields | |
|---|---|
conditions |
Conditions represent the latest available observations of the object's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
externalRef |
A unique specifier for the BackupDRBackupPlan resource in Google Cloud. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
observedState |
ObservedState is the state of the resource as most recently observed in Google Cloud. |
observedState.backupVaultServiceAccount |
Output only. The Google Cloud Service Account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account. |
observedState.createTime |
Output only. When the `BackupPlan` was created. |
observedState.state |
Output only. The `State` for the `BackupPlan`. |
observedState.updateTime |
Output only. When the `BackupPlan` was last updated. |