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

backups-cron lets it run every minute #37

Closed Leinad7331 closed 1 year ago

Leinad7331 commented 3 years ago

Deploying the imgae (even with environment variables) deploys the backups-cron so that it backups every minute.

I had to manually enter the container and change the "backups-cron" file so that it only runs at 23h.

Is this the supposed behaviour or is there some kind of env-variable that I am missing?

It would be great if the container works out of the box with no manual configuration after starting it.

NyakudyaA commented 3 years ago

Hi, @Leinad7331 What version of the image are you running. I usually run it minutely when I am testing. If this is the behavior then I will fix it asap

Leinad7331 commented 3 years ago

I am running 12:0. When I entered the docker container, ran nano on backups-cron I saw this: image

Commenting the first cron-job solved the issue for me.

NyakudyaA commented 3 years ago

I am running 12:0. When I entered the docker container, ran nano on backups-cron I saw this: image

Commenting the first cron-job solved the issue for me.

Thanks, will take a look and fix

NyakudyaA commented 1 year ago

Added an env variable to control this