Automatically backup the postgres database.
1.7K
docker run --name [pg_backup] -v [your path]:/usr/backups/postgresql/ --link [your pg name]:pg -d luck9star/postgres-auto-backup
docker logs [pg_backup]
It'll automatically backup the pg database and save to the specify path.
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
Content type
Image
Digest
sha256:dde5f2b33…
Size
95.6 MB
Last updated
about 11 years ago
docker pull luck9star/postgres-auto-backup