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

junte/docker-pg-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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