About this task
To grant a user privilege to back up a specific database,
complete the following steps:
Procedure
- Run nzsql and connect
to the database you want to allow the user to back up by entering: nzsql db1.
- Create a user user_backup with password
password.
For example:
DB1.SCHEMA(ADMIN)=> CREATE USER user_backup WITH PASSWORD 'password';
- Grant backup privilege to user_backup.
For example:
DB1.SCHEMA(ADMIN)=> GRANT BACKUP TO user_backup;