# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/gcp/gcp.gkebackup_backup.dataset.md

---
title: Backup
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Backup
---

# Backup

Backup in Google Cloud is a managed service that allows you to create, manage, and restore backups of your data and workloads. It provides centralized backup management across multiple Google Cloud services, ensuring data protection, compliance, and disaster recovery. The service supports automated scheduling, retention policies, and secure storage of backup data.

```
gcp.gkebackup_backup
```

## Fields

| Title                    | ID   | Type          | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Description |
| ------------------------ | ---- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                     | core | string        |
| all_namespaces           | core | bool          | Output only. If True, all namespaces were included in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ancestors                | core | array<string> |
| cluster_metadata         | core | json          | Output only. Information about the GKE cluster from which this Backup was created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| complete_time            | core | timestamp     | Output only. Completion time of the Backup                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| config_backup_size_bytes | core | int64         | Output only. The size of the config backup in bytes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| contains_secrets         | core | bool          | Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's include_secrets value.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| contains_volume_data     | core | bool          | Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's include_volume_data value.                                                                                                                                                                                                                                                                                                                                                                                                                      |
| create_time              | core | timestamp     | Output only. The timestamp when this Backup resource was created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| datadog_display_name     | core | string        |
| delete_lock_days         | core | int64         | Optional. Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be "locked" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).                                                                                   |
| delete_lock_expire_time  | core | timestamp     | Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + delete_lock_days).                                                                                                                                                                                                                                                                                                                                                                                                               |
| description              | core | string        | Optional. User specified descriptive string for this Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| etag                     | core | string        | Output only. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform backup updates in order to avoid race conditions: An `etag` is returned in the response to `GetBackup`, and systems are expected to put that etag in the request to `UpdateBackup` or `DeleteBackup` to ensure that their change will be applied to the same version of the resource. |
| labels                   | core | array<string> | Optional. A set of custom labels supplied by user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| manual                   | core | bool          | Output only. This flag indicates whether this Backup resource was created manually by a user or via a schedule in the BackupPlan. A value of True means that the Backup was created manually.                                                                                                                                                                                                                                                                                                                                                      |
| name                     | core | string        | Output only. Identifier. The fully qualified name of the Backup. `projects/*/locations/*/backupPlans/*/backups/*`                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| organization_id          | core | string        |
| parent                   | core | string        |
| permissive_mode          | core | bool          | Output only. If false, Backup will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore. Inherited from the parent BackupPlan's permissive_mode value.                                                                                                                                                                                                                                                                                                                           |
| pod_count                | core | int64         | Output only. The total number of Kubernetes Pods contained in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| project_id               | core | string        |
| project_number           | core | string        |
| region_id                | core | string        |
| resource_count           | core | int64         | Output only. The total number of Kubernetes resources included in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| resource_name            | core | string        |
| retain_days              | core | int64         | Optional. The age (in days) after which this Backup will be automatically deleted. Must be an integer value >= 0: - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be >= delete_lock_days and <= 365. Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's backup_retain_days value.                                                                                                                                                                                     |
| retain_expire_time       | core | timestamp     | Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).                                                                                                                                                                                                                                                                                                                                                                                                                              |
| satisfies_pzi            | core | bool          | Output only. [Output Only] Reserved for future use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| satisfies_pzs            | core | bool          | Output only. [Output Only] Reserved for future use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| selected_applications    | core | json          | Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| selected_namespaces      | core | json          | Output only. If set, the list of namespaces that were included in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| size_bytes               | core | int64         | Output only. The total size of the Backup in bytes = config backup size + sum(volume backup sizes)                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| state                    | core | string        | Output only. Current state of the Backup                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| state_reason             | core | string        | Output only. Human-readable description of why the backup is in the current `state`. This field is only meant for human readability and should not be used programmatically as this field is not guaranteed to be consistent.                                                                                                                                                                                                                                                                                                                      |
| tags                     | core | hstore_csv    |
| uid                      | core | string        | Output only. Server generated global unique identifier of [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)                                                                                                                                                                                                                                                                                                                                                                                                                     |
| update_time              | core | timestamp     | Output only. The timestamp when this Backup resource was last updated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| volume_count             | core | int64         | Output only. The total number of volume backups contained in the Backup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| zone_id                  | core | string        |