Required User Privileges for Backups and Restores

sql

(Alex Narayan) #1

The Backup docs (https://www.cockroachlabs.com/docs/v2.1/backup.html#main-content) and the Restore docs (https://www.cockroachlabs.com/docs/v2.1/restore.html) currently don’t mention anything about what access/roles a cockroachDB user would have to be to issue a backup or restore. Should I assume root?


(Marc) #2

As mention in the Required Privileges section on each of the pages you linked, the caller must be a member of the admin role. By default, that means only the root user.


(Alex Narayan) #3

Ugh, apologies for missing something so obvious.