Closed kandros closed 3 years ago
This is the intended behavior, more or less. If you don't set SCHEDULE
, nothing happens unless you trigger a backup manually with docker exec
. If you do SCHEDULE
, the else clause will run.
Oh now I understand thanks.
Worth mentioning I was able to execute it right away setting command to ["sh", "backup.sh"]
(my usecase was running the image only one in a kubernetes CronJob)
When not set the
SCHEDULE
env defaults an empty string, failing the check atResulting in the else clause to never run