# Class Backup (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.14

    Backup(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Backup of a cluster.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: \[YYYYMMDDHHMMSS\]\\_\[Shorted Cluster UID\] OR customer specified while backup cluster. Example: 20240515123000_1234 |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the backup was created. |
| `cluster` | `str` Output only. Cluster resource path of this backup. |
| `cluster_uid` | `str` Output only. Cluster uid of this backup. |
| `total_size_bytes` | `int` Output only. Total size of the backup in bytes. |
| `expire_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the backup will expire. |
| `engine_version` | `str` Output only. redis-7.2, valkey-7.5 |
| `backup_files` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-redis-cluster/latest/google.cloud.redis_cluster_v1.types.BackupFile]` Output only. List of backup files of the backup. |
| `node_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-redis-cluster/latest/google.cloud.redis_cluster_v1.types.NodeType` Output only. Node type of the cluster. |
| `replica_count` | `int` Output only. Number of replicas for the cluster. |
| `shard_count` | `int` Output only. Number of shards for the cluster. |
| `backup_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-redis-cluster/latest/google.cloud.redis_cluster_v1.types.Backup.BackupType` Output only. Type of the backup. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-redis-cluster/latest/google.cloud.redis_cluster_v1.types.Backup.State` Output only. State of the backup. |
| `encryption_info` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-redis-cluster/latest/google.cloud.redis_cluster_v1.types.EncryptionInfo` Output only. Encryption information of the backup. |
| `uid` | `str` Output only. System assigned unique identifier of the backup. |

## Classes

### BackupType

    BackupType(value)

Type of the backup.

### State

    State(value)

State of the backup.