API setting backup

Does anyone know how to back up and restore settings related to role-based access and API keys? It seems that there is no relevant description in the documentation.

Thanks!

ps. I deploy the DreamFactory of version v6 by docker-compose.

Hey!

Since you’re using Docker with PostgreSQL, back up the database using pg_dump:

Run the following command inside your host machine:

docker exec -t postgres pg_dump -U dreamfactory -d dreamfactory -c -f /backup/dreamfactory_roles_api_keys.sql

(Adjust the database user and name if needed.)

This creates a backup file containing the settings.