The DataDumper directory contains scripts for backing up and restoring the Data Sources App Database.
- A
Dockerfilewhich contains the instructions for building the docker image with Postgres functionality enabled - A
dump.shscript which handles the dump process - A
restore.shscript which handles the restore process - A
docker-compose.ymlfile which handles the setup of the docker container and can be modified to run eitherdump.shorrestore.sh - A
.envfile which contains environment variables for the docker container - A
dumpdirectory which stores the dump.
To connect to the database, your IP address will need to be added to the "allow" list in DigitalOcean database settings. Reach out to someone with admin access to get your IP address added.
| Name | Description | Example |
|---|---|---|
DUMP_HOST |
The host of the database to dump. | 127.0.0.1 |
DUMP_USER |
The username of the user to connect to the database. | test_source_collector_user |
DUMP_PASSWORD |
The password of the user to connect to the database. | HanviliciousHamiltonHilltops |
DUMP_DB_NAME |
The name of the database to dump. | source_collector_test_db |
DUMP_PORT |
The port of the database to dump. | 5432 |
RESTORE_HOST |
The host of the database to restore into. | 127.0.0.1 or 'host.docker.internal' |
RESTORE_USER |
The username of the user to connect to the database. | test_source_collector_user |
RESTORE_PORT |
The port of the database to restore into. | 5432 |
RESTORE_DB_NAME |
The name of the database to restore into. | source_collector_test_db |
RESTORE_PASSWORD |
The password of the user to connect to the database. | HanviliciousHamiltonHilltops |