複製備份 - Amazon ElastiCache (雷迪斯 OSS)

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

複製備份

您可以建立任何備份的副本,不論是自動或手動建立的備份。您還可以導出備份,以便從外部訪問它 ElastiCache。如需匯出備份的指引,請參閱匯出備份

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

複製備份 (主控台)
  1. 請登入 AWS Management Console 並開啟 ElastiCache 主控台,網址為 https://console.aws.amazon.com/elasticache/

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

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

  4. 選擇動作複製

  5. New backup name (新的備份名稱) 方塊中,輸入新的備份名稱。

  6. 請選擇 Copy (複製)。

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

參數
  • --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 中的 copy-serverless-cache-snapshot

若要複製自行設計叢集的備份,請使用 copy-snapshot 操作。

參數
  • --source-snapshot-name - 要複製的備份名稱。

  • --target-snapshot-name - 備份的複本名稱。

  • --target-bucket - 保留以供匯出備份。建立備份複本時,請勿使用此參數。僅適用於 Redis OSS 無伺服器快取和 Redis OSS 自行設計的叢集。如需詳細資訊,請參閱 匯出備份

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

若為 Linux、macOS 或 Unix:

aws elasticache copy-snapshot \ --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 \ --target-snapshot-name my-backup-copy

針對 Windows:

aws elasticache copy-snapshot ^ --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 ^ --target-snapshot-name my-backup-copy

如需詳細資訊,請參閱 AWS CLI 中的 copy-snapshot