# Memorystore V1 API - Class Google::Cloud::Memorystore::V1::Backup (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1 API class Google::Cloud::Memorystore::V1::Backup.

Backup of an instance.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #backup_files

    def backup_files() -> ::Array<::Google::Cloud::Memorystore::V1::BackupFile>

**Returns**

- (::Array\<[::Google::Cloud::Memorystore::V1::BackupFile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-BackupFile)\>) --- Output only. List of backup files of the backup.

### #backup_type

    def backup_type() -> ::Google::Cloud::Memorystore::V1::Backup::BackupType

**Returns**

- ([::Google::Cloud::Memorystore::V1::Backup::BackupType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-Backup-BackupType)) --- Output only. Type of the backup.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the backup was created.

### #encryption_info

    def encryption_info() -> ::Google::Cloud::Memorystore::V1::EncryptionInfo

**Returns**

- ([::Google::Cloud::Memorystore::V1::EncryptionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-EncryptionInfo)) --- Output only. Encryption information of the backup.

### #engine_version

    def engine_version() -> ::String

**Returns**

- (::String) --- Output only. valkey-7.5/valkey-8.0, etc.

### #expire_time

    def expire_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the backup will expire.

### #instance

    def instance() -> ::String

**Returns**

- (::String) --- Output only. Instance resource path of this backup.

### #instance_uid

    def instance_uid() -> ::String

**Returns**

- (::String) --- Output only. Instance uid of this backup.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: \[YYYYMMDDHHMMSS\]_\[Shorted Instance UID\] OR customer specified while backup instance. Example: 20240515123000_1234

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: \[YYYYMMDDHHMMSS\]_\[Shorted Instance UID\] OR customer specified while backup instance. Example: 20240515123000_1234
**Returns**

- (::String) --- Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: \[YYYYMMDDHHMMSS\]_\[Shorted Instance UID\] OR customer specified while backup instance. Example: 20240515123000_1234

### #node_type

    def node_type() -> ::Google::Cloud::Memorystore::V1::Instance::NodeType

**Returns**

- ([::Google::Cloud::Memorystore::V1::Instance::NodeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-Instance-NodeType)) --- Output only. Node type of the instance.

### #replica_count

    def replica_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of replicas for the instance.

### #shard_count

    def shard_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of shards for the instance.

### #state

    def state() -> ::Google::Cloud::Memorystore::V1::Backup::State

**Returns**

- ([::Google::Cloud::Memorystore::V1::Backup::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-Backup-State)) --- Output only. State of the backup.

### #total_size_bytes

    def total_size_bytes() -> ::Integer

**Returns**

- (::Integer) --- Output only. Total size of the backup in bytes.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. System assigned unique identifier of the backup.