beherbergung/backend/src/beherbergung/resolver/root/admin/Export.md

426 B

This can be used for debugging or to test with a dump of the productive database before releasing a new software version:

curl 'https://URL/graphql' -H 'Content-Type: application/json' --data '{"query": "query Export{ export(password: \"ADMIN_PASSPHRASE\"){out err} }"}' | jq '.data.export.out' -r > /tmp/export.gpg
cd backend
gpg --decrypt /tmp/export.gpg | DB_SEED=/dev/stdin DB_INMEMORY=true lein run