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

the cron schedule never executed #39

Closed npltr62 closed 3 years ago

npltr62 commented 3 years ago

Hi, when i m executing manually this command sudo docker exec dbbackups /backup-scripts/backups.sh the dump file is created but the cron schedule is not executed every night , why? image is a problem with "users" => postgres/docker?

NyakudyaA commented 3 years ago

@npltr62 can you check what is contained in the crontab, will investigate this

npltr62 commented 3 years ago

@npltr62 can you check what is contained in the crontab, will investigate this

here is a screeshot of the crontab (backup-scripts/backups-cron) when i run vim image

NyakudyaA commented 3 years ago

@npltr62 The /backups.sh should be /backup-scripts/backups.sh that's why it is not working. What image version are you using

npltr62 commented 3 years ago

ok thanks kartoza/postgis:13-3.1 kartoza/pg-backup:13.0

npltr62 commented 3 years ago

i changed the above path in backups-cron but it's still not working, should i change postgis image version? 13-3.1 => 13.0