Docker image that runs a cron job which dumps a Postgres database.
CRON_SCHEDULE: The time schedule part of a crontab file (e.g: :code: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 databaseWEBHOOK: 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 backupsThis 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: :code:/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 databaseContent type
Image
Digest
Size
83.3 MB
Last updated
about 6 years ago
docker pull hsrnetwork/postgres-backup