Single DB backup/restore for RDS

0

I am a bit confused whether customer can or cannot backup a single DB using RDS.

While the official AWS document mentioned you can use .bak file to "Backup and restore single databases, instead of entire DB instances." https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html

But doesn't specify how
AND there are multiple answers on various communities that said backing up single DB is NOT possible using the RDS backup mechanism,

The only viable option I can find is export/dump the data using export tools (and maybe DMS), which in most cases is very manual process.

Can someone shed some light?

Thanks

已提问 6 年前2991 查看次数
1 回答
0
已接受的回答

In a simplistic high-level view: DB backups are taken in two distinct ways: logical backups or physical backups. Logical backups work by reading the data from database, they are slower and might cause some locks on some tables and/or rows while taking backups so they might not be suitable and good for system performance in some cases.

Physical backups are faster and impose minimal impact on system but requires physical access to database subsystems (OS, Disks, Volumes).

RDS as a managed service does not allow access to hardware or operating system thus customers can not use physical backup tools. These kind of backups are provided within the service itself (as snapshot based backups in RDS).

Logical backups are easier and flexible because they only need access to database. If you can read, you can do a logical backup. The simplest example is using mysqldump and variants to take logical backups of MySQL/Aurora RDS.

Long story short customers are limited in physical backups solutions but more flexible in logical tools. If this requirement is about MSSQL-RDS, yes customer can use this feature to import/export .bak files to backup individual databases in MSSQL.

For an MSSQL customer the link that you shared may help.

AWS
已回答 6 年前
profile picture
专家
已审核 21 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则