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

posta 6 anni fa3053 visualizzazioni
1 Risposta
0
Risposta accettata

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
con risposta 6 anni fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande