Skip to content

SUNET/docker-postgresql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-postgresql

Adapted from https://github.com/docker-library/postgres/.

Should work as the official Postgres image.

Backup

Run docker exec db_name /usr/local/bin/backup create a db dump with pg_dumpall in $BACKUPROOT (defaults to /var/lib/postgresql/backup). The script will gzip the dump and keep the ten latest runs.

Restore

Restore a pg_dumpall database dump by mounting it to /restore/dump_all.sql. The restore script will only run if the database is uninitialized and the file dump_all.sql exists.

About

docker-postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 51.6%
  • Shell 48.4%