Permissions¶
Add --include-permissions to export roles, grants, and role memberships
alongside the schema:
This writes, under crdb_dump_output/mydb/:
roles.sql—CREATE ROLEstatementsgrants.sql— objectGRANTstatementsrole_memberships.sql— role membership grants (withWITH ADMIN OPTIONwhere applicable)permissions.sql— an aggregate of all of the above, with an export timestamp
Apply them during restore with crdb-dump load --schema=... (or run the SQL
directly), after the schema objects exist.