1

我想将我的 Aurora 数据库恢复到指定时间。我已经启用了自动备份。我已经尝试了官方用户指南(https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html)中的以下脚本:

aws rds restore-db-instance-to-point-in-time \
    --source-db-instance-identifier mysourcedbinstance \
    --target-db-instance-identifier mytargetdbinstance \
    --restore-time 2018-01-12T23:45:00.000Z

我有以下错误:

An error occurred (PointInTimeRestoreNotEnabled) when calling the RestoreDBInstanceToPointInTime operation: Point-in-time restore is not enabled for this database instance. To enable point-in-time restore, use ModifyDBInstance to set the backup retention period to a non-zero value.

源实例的“BackupRetentionPeriod”属性为 30。

根据 AWS 控制台,此恢复时间介于“最早可恢复时间”和“最新恢复时间”之间:

在此处输入图像描述

我做错了什么?

4

1 回答 1

-1

如果您从此处查看示例,我认为您的 CLI 命令不正确,并且错误消息很糟糕。特别是,你的时间看起来很糟糕。

https://docs.aws.amazon.com/cli/latest/reference/rds/restore-db-instance-to-point-in-time.html

尝试:

aws rds restore-db-instance-to-point-in-time \ --source-db-instance-identifier mysourcedbinstance \ --target-db-instance-identifier mytargetdbinstance \ --restore-time 2018-01-12T23:45:00Z

于 2018-01-13T16:11:11.827 回答