Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEFAULT_BACKUP_BEGIN is ignored #393

Open
PacmanForever opened this issue Jan 2, 2025 · 0 comments
Open

DEFAULT_BACKUP_BEGIN is ignored #393

PacmanForever opened this issue Jan 2, 2025 · 0 comments
Labels

Comments

@PacmanForever
Copy link

Summary

I have configured the docker variables to run every day at 02:00, but it runs at 21:27 and I don't know why. Sometimes, the first execution is done at the configured time. The last execution has scheduled the next one for 16:00.

Steps to reproduce

db-backup: restart: unless-stopped container_name: db-backup environment: TIMEZONE: Europe/Madrid TEMP_LOCATION: /backup/temp/ CONTAINER_ENABLE_MONITORING: FALSE DB_TYPE: mariadb DB_PORT: 3306 DEFAULT_BACKUP_LOCATION: FILESYSTEM DEFAULT_BACKUP_BEGIN: '0200' DEFAULT_BACKUP_INTERVAL: 1140 # backup every day DEFAULT_CLEANUP_TIME: 1140 # clean every day DEFAULT_CHECKSUM: SHA1 DEFAULT_COMPRESSION: GZ DB01_SPLIT_DB: FALSE volumes: - *** image: tiredofit/db-backup:latest

What is the expected correct behavior?

I would expect the backup to run at 02:00.

Relevant logs and/or screenshots

First logs after start docker container:

2024-12-31.09:14:30 [NOTICE] ** [timezone] Timezone: Setting to 'Europe/Madrid' from 'Etc/GMT'
2024-12-31.10:14:30 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2024-12-31.10:14:30 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
2024-12-31.10:14:31 [STARTING] ** [scheduling] [1] Starting cron
2024-12-31.10:14:32 [INFO] ** [name] Next Backup at 2025-01-01 02:00:00 CET

Last execution:

2025-01-01.21:27:11 [NOTICE] ** [name] DB Backup for 'all' time taken: Hours: 0 Minutes: 27 Seconds: 11
2025-01-01.21:27:11 [INFO] ** [name] Cleaning up old backups on filesystem
2025-01-01.21:27:12 [INFO] ** [name] Backup 01 routines finish time: 2025-01-01 21:27:12 CET with exit code 0
2025-01-01.21:27:12 [NOTICE] ** [name] Backup 01 routines time taken: Hours: 0 Minutes: 27 Seconds: 12
2025-01-01.21:27:12 [NOTICE] ** [name] Sleeping for another 66768 seconds. Waking up at 2025-01-02 16:00:00 CET

Environment

Ubuntu 24.04.1 LTS server with docker

Possible fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant