简体   繁体   English

我们可以将AWS RDS只读副本视为备份吗?

[英]Can we consider AWS RDS read replica as Backup?

I have postgres on rds with 2 day snapshot retention. 我在rds上有postgres,保留了2天的快照。 But it's only updated daily so in order not to lose 24 hours of data, I decided to enable read replica to make sure data are safe. 但这只是每天更新一次,因此为了不丢失24小时数据,我决定启用只读副本以确保数据安全。

Is it okay to use read replica as backup? 可以使用只读副本作为备份吗?

Is there any better way to have sync backup (maximum 30 mins lag) of postgres from rds? 有没有更好的方法来从rds同步备份postgres(最长30分钟)?

RDS Postgres supports point-in-time restores ( http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html ). RDS Postgres支持时间点还原( http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html )。

If you run a disastrous query on your main database, your read replica will also sync this changes. 如果您在主数据库上运行灾难性查询,则只读副本也会同步此更改。 Don#t use it as a backup. 不要将其用作备份。

Actually, we don't need to backup manually. 实际上,我们不需要手动备份。

DB Instance Backups 数据库实例备份

RDS provide daily automated backups, Amazon RDS also archives database change logs. RDS提供每日自动备份,Amazon RDS还存档数据库更改日志。 This enables you to recover your database to any point in time during the backup retention period, up to the last five minutes of database usage. 这使您可以将数据库恢复到备份保留期内的任何时间点,直到数据库使用的最后五分钟。 For more information on working with point-in-time recovery, see Restoring a DB Instance to a Specified Time . 有关使用时间点恢复的更多信息,请参阅将数据库实例还原到指定时间

Hola !! 你好 !!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM