2022-08-29 17:31:41 +00:00
2022-08-29 17:31:41 +00:00
2022-08-05 12:41:23 +03:00
2022-08-05 12:41:23 +03:00
2022-08-29 17:31:41 +00:00
2022-08-29 17:31:41 +00:00
2022-08-05 12:54:06 +03:00
2022-08-05 12:54:06 +03:00

docker-postgres-backup

This docker image provides functionality:

  1. Backup your PostgresSQL database to sql file using pg_dump
  2. Compress sql file using LZMA2
  3. Upload compressed file to S3 storage
  4. Scheduled to run every hour

Versions

You can use two versions:

  • PostgreSQL 13: registry.gitlab.com/technocloud/docker-postgres-backup/docker-postgres-backup:pg13
  • PostgreSQL 14: registry.gitlab.com/technocloud/docker-postgres-backup/docker-postgres-backup:pg14

SETTINGS

You can set some envs vars:

  • DEBUG - run every 1 minute if 1, default is 0
  • DB_USER - user to connect DB, default is postgres
  • DB_PASSWORD - password to connect DB, default is postgres
  • DB_HOST - host to connect DB, default is localhost
  • DB_PORT - port to connect DB, default is 5432
  • DB_NAME - database to back up, default is postgres
  • TIME_ZONE - timezone for datetime using in filenames, default is Europe/Tallinn
  • COMPRESSION_LEVEL - level of LZMA compression, default is 7
  • PREFIX - prefix for backup filename, default is empty

Also, please define settings for S3 storage:

  • AWS_S3_REGION_NAME - default nl-ams
  • AWS_S3_ENDPOINT_URL - default https://s3.nl-ams.scw.cloud
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_BUCKET_NAME
Description
No description provided
Readme 114 KiB
Languages
Python 100%