Single DB backup/restore for RDS


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."

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?


asked 5 years ago390 views
1 Answer
Accepted Answer

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.

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions