The topic describes the permissions that are required to back up or restore databases.
Required permissions for different types of database accounts
MySQL databases
Feature | Required permissions |
Backup |
|
Restoration | SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, and TRIGGER |
To perform incremental backup in MySQL databases, Database Backup (DBS) must execute the
show binary logs
statement. For MySQL 5.5.24 and earlier versions, theSUPER
permission is required to execute the statement. For MySQL 5.5.25 and later versions, only theREPLICATION CLIENT
permission is required to execute the statement.The permissions required to back up or restore RDS databases are determined based on your business requirements. Read-only permissions are required for backup, and read and write permissions are required for backup and restoration.
SQL Server databases
Feature | Required permissions |
Backup | SELECT and VIEW DEFINITION |
Restoration | SELECT, INSERT, ALTER Database, REFERENCES, and VIEW DEFINITION |
PostgreSQL databases
Feature | Required permissions |
Backup | SELECT or SUPER role |
Restoration | CREATE, INSERT, USAGE, REFERENCES, and TRIGGER |
Oracle databases
Feature | Required permissions |
Backup | Permissions of database administrator (DBA) |
Restoration | Permissions of DBA |
MongoDB databases
Feature | Required permissions |
Backup | Read permissions on the admin database, local database, config database, and databases to be backed up |
Restoration | Read and write permissions on the databases to be restored |