Docker image that runs a cron job which dumps a Postgres database.
CRON_SCHEDULE: The time schedule part of a crontab file (e.g:15 3 * * *for every night 03:15)DB_HOST: Postgres hostnameDB_PASS: Postgres password or POSTGRES_PASSWORD_FILE=/run/secrets/db_passwordDB_USER: Postgres usernameDB_NAME: Name of database
WEBHOOK: If specified, an HTTP request will be sent to this URLWEBHOOK_METHOD: By default the webhook's HTTP method is GET, but can be changed using this variableKEEP_BACKUP_DAYS: The number of days to keep backups for when pruning old backups
This image can also be run as a one off task to restore one of the backups.
To do this, we run the container with the command: /backup/restore.sh [filename].
The following environment variables are required:
DB_HOST: Postgres hostnameDB_PASS: Postgres password or POSTGRES_PASSWORD_FILE=/run/secrets/db_passwordDB_USER: Postgres usernameDB_NAME: Name of database