Sign inSign up

robinthoni/postgres-backup-multiarch

By robinthoni

Updated about 9 years ago

The PostgreSQL object-relational database system provides reliability and data integrity with backup

Image
0

404

robinthoni/postgres-backup-multiarch repository overview

Description:

This is a multi architecture image for postgres. This allows you to write only one Dockerfile and run it on multiple architectures (your laptop, server or Raspberry Pi) without any change. See postgres. This image is based on official postgres image, so it supports same options/configurations.

Images

amd64 arm

Backup

Backup is configured by default to make a backup every day, and keep them for 10 weeks. Backup script is based on pg_backup_rotated.sh script. It only add a new complete file with the date and time to ensure backup is finished successfully.

You can override the default configuration by copying your own configuration: COPY ./backup/pg_backup.config /etc/pg_backup.config

You can also make some changes in the backup script and replace the original one: COPY ./backup/pg_backup_rotated.sh /usr/local/bin/pg_backup_rotated.sh

The backup is performed every day using default cron.daily.

Backup are stored in /var/lib/postgresql/backup

Usage

FROM robinthoni/postgres-backup:9.6

Tag summary

Content type

Image

Digest

Size

111.5 MB

Last updated

about 9 years ago

docker pull robinthoni/postgres-backup-multiarch:9.6-1.1.0