我想将我的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控制台,此恢复时间介于“最早恢复时间”和“最新恢复时间”之间:

我做错了什么?
发布于 2018-01-14 00:11:12
如果你看看这里的例子,我认为你的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
https://stackoverflow.com/questions/48239306
复制相似问题