

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 複製備份
<a name="backups-copying"></a>

您可以建立任何備份的副本，不論是自動或手動建立的備份。您也可匯出備份，以從 ElastiCache 外部進行存取。如需匯出備份的指導方針，請參閱[匯出備份](backups-exporting.md)。

下列步驟說明如何複製備份。

## 複製備份 (主控台)
<a name="backups-copying-CON"></a>

**複製備份 (主控台)**

1. 登入AWS 管理主控台並開啟位於 https：//[https://console.aws.amazon.com/elasticache/](https://console.aws.amazon.com/elasticache/) 的 ElastiCache 主控台。

1. 若要查看您的備份清單，請從左側導覽窗格，選擇 **Backups (備份)**。

1. 從備份清單，選擇您要複製之備份名稱左側的方塊。

1. 選擇**動作**、**複製**。

1. 在 **New backup name (新的備份名稱)** 方塊中，輸入新的備份名稱。

1. 請選擇 **Copy** (複製)。

## 複製無伺服器備份 (AWS CLI)
<a name="backups-copying-CLI"></a>

若要複製無伺服器快取的備份，請使用 `copy-serverless-cache-snapshot` 操作。

**Parameters**
+ `--source-serverless-cache-snapshot-name` - 要複製的備份名稱。
+ `--target-serverless-cache-snapshot-name` - 備份的複本名稱。

下列範例會建立自動備份的複本。

針對 Linux、macOS 或 Unix：

```
aws elasticache copy-serverless-cache-snapshot \
    --source-serverless-cache-snapshot-name automatic.my-cache-2023-11-27-03-15 \
    --target-serverless-cache-snapshot-name my-backup-copy
```

針對 Windows：

```
aws elasticache copy-serverless-cache-snapshot ^
    --source-serverless-cache-snapshot-name automatic.my-cache-2023-11-27-03-15 ^
    --target-serverless-cache-snapshot-name my-backup-copy
```

如需詳細資訊，請參閱 *AWS CLI* 中的 [https://docs.aws.amazon.com/cli/latest/reference/elasticache/copy-serverless-cache-snapshot.html](https://docs.aws.amazon.com/cli/latest/reference/elasticache/copy-serverless-cache-snapshot.html)。

## 複製節點型叢集備份 (AWS CLI)
<a name="backups-copying-self-designed-CLI"></a>

若要複製節點型叢集的備份，請使用 `copy-snapshot`操作。

**Parameters**
+ `--source-snapshot-name` - 要複製的備份名稱。
+ `--target-snapshot-name` - 備份的複本名稱。
+ `--target-bucket` - 保留以供匯出備份。建立備份複本時，請勿使用此參數。如需詳細資訊，請參閱[匯出備份](backups-exporting.md)。

下列範例會建立自動備份的複本。

針對 Linux、macOS 或 Unix：

```
aws elasticache copy-snapshot  \
    --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 \
    --target-snapshot-name amzn-s3-demo-bucket
```

針對 Windows：

```
aws elasticache copy-snapshot ^
    --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 ^
    --target-snapshot-name amzn-s3-demo-bucket
```

如需詳細資訊，請參閱 *AWS CLI* 中的 [https://docs.aws.amazon.com/cli/latest/reference/elasticache/copy-snapshot.html](https://docs.aws.amazon.com/cli/latest/reference/elasticache/copy-snapshot.html)。