-
Notifications
You must be signed in to change notification settings - Fork 5
DB data management commands explanation and usage
Alicia Arenzana Gil de muro edited this page Mar 4, 2021
·
3 revisions
You need to have the API running, and a full DB setup (if you don't have a full DB, run the below commands and grab a cup of tea, the normal process should take between 30 and 45 min to fulfill):
make start-api
make seed-api-with-test-data && make seed-geodb-data
These commands will generate a full dump of your DBs in data/data/processed/db_dumps/
make dump-geodb-data && make dump-api-data
You need to have the dumps ready in data/data/processed/db_dumps/
, have az
cli in your local, and being log in
make upload-dump-data
In order to restore the DB you can do:
make restore-dumps
And now that we have a full DB fresh and restored you can if you want, extract and generate new testing data:
Requirements: make notebooks
make generate-geo-test-data
or if you want to populate db with testing data just do:
make seed-dbs