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