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

DB list is not dynamic #77

Closed NyakudyaA closed 1 year ago

NyakudyaA commented 1 year ago

Problem

When the container starts it reads the list of available databases and stores them in pgenv.sh, if subsequent databases that are added to the upstream database are not backed up until a restart of the pg_container

Solution

Find a way to query the DB and populate a list dynamically or maybe poll the DB based on the cron schedule and populate pgenv.sh