Public | Automated Build

Last pushed: 2 years ago
Short Description
Automatically backup the postgres database.
Full Description

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

Docker Pull Command
Owner
luck9star
Source Repository

Comments (0)