Skip to content

Download database

To have some data to show when developing locally, we usually load a database dump.

The dump can be from a test server but can also be a full customer database, which is often helpful when debugging something that is tied to the way that their CustomOffice is configured.

Create dumps folder

This is the folder where all database dumps are stored.

mkdir ~/dumps

Download dump

Here, we download the dump from our econ.

Downloading a dump is done by a shell script:

  • ./backend/vama/fetch_dump.sh econ

Once completed, you should see a compressed dump of the database from econ.customoffice.dk within the ~/dumps folder

Load dump

docker compose -f docker/development/docker-compose.yml run --build --rm load-dump econ