kartoza / docker-pg-backup

A cron job that will back up databases running in a docker postgres container
GNU General Public License v2.0
452 stars 103 forks source link

Unreliable DBLIST generation #64

Closed hylkevds closed 2 years ago

hylkevds commented 2 years ago

When the database is not ready at the time the docker-pg-backup container starts, it initialises with an empty DBLIST and thus never makes any backups. If DBLIST is empty, it's probably better to exit with an error, so the container is restarted after a bit of a delay.

NyakudyaA commented 2 years ago

@hylkevds Can you test the PR

hylkevds commented 2 years ago

Tested, and can confirm it works. Thanks for the fix!