Sign inSign up

luck9star/postgres-auto-backup

By luck9star

Updated about 11 years ago

Automatically backup the postgres database.

Image
1

1.7K

luck9star/postgres-auto-backup repository overview

Usage

docker run --name [pg_backup] -v [your path]:/usr/backups/postgresql/ --link [your pg name]:pg -d luck9star/postgres-auto-backup

Logs

docker logs [pg_backup]

It'll automatically backup the pg database and save to the specify path.

Default backup time is 00:00 every day.

You can change the crontab file by: -v [your file]: /usr/backups/pg_crontab:ro And here is the default content: 0 0 * * * root bash /usr/backups/pg_backup_rotated.sh >> /var/log/cron.log 2>&1

Tag summary

Content type

Image

Digest

sha256:dde5f2b33

Size

95.6 MB

Last updated

about 11 years ago

docker pull luck9star/postgres-auto-backup