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

File pgenv.sh not created, doesn't backup. #4

Closed itsjef closed 5 years ago

itsjef commented 8 years ago

Hi,

I am having an issue trying to automate backing up my database using your method.

I edited backups-cron for it to run every 1 minute and ran docker-compose up dbbackup.

After awhile I came to check just to discover no .dmp were created :frowning: so I ran:

docker-compose run dbbackup /bin/bash

And found no pgenv.sh were created. Which is weird because the log from above did printed out all environment parameters specified in start.sh

Then I manually ran ./start.sh and waited for a while. The pgenv.sh was created then but still no .dmp in the backups directory :frowning:

Only running backups.sh manually resulted in a .dmp

NyakudyaA commented 5 years ago

@itsjef In your docker-compose overwrite the entry point with the start.sh again and see if it helps

itsjef commented 5 years ago

@itsjef In your docker-compose overwrite the entry point with the start.sh again and see if it helps

It's been almost 3 years now, I forgot what I tried to do back then :joy:

NyakudyaA commented 5 years ago

Fixed, working