Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (16 loc) · 425 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 425 Bytes

docker-pg-backup

Docker container for quick setup postgres backup

Example backup.sh:

#! /bin/bash

set -o errexit
set -o nounset

docker run \
    -e PGHOST=<pg_host> \
    -e PGUSER=<pg_user> \
    -e PGPASSWORD=<pg_password> \
    -e BACKUP_DATABASES=databases1,database2 \
    -v <host_backups_folder>:/pg_backup \
    junte/pg-backup:1.3-client12

If "BACKUP_DATABASES=_all_" - alldump will be executed