From 25bc71f0f0c840c0ca0e6196cdd6060989fb29b2 Mon Sep 17 00:00:00 2001 From: Philip Henning Date: Tue, 4 Feb 2025 17:50:18 +0100 Subject: [PATCH] fix cron --- docker-compose.prod.yml | 4 ++-- docker-compose.test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a998b15..1a19b2d 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -157,7 +157,7 @@ services: [[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose docker compose exec -T postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql RUN_ON_STARTUP: "false" - BACKUP_CRON: "32 2 * * *" + BACKUP_CRON: "00 32 2 * * *" RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}' RESTIC_BACKUP_SOURCES: /var/lib/postgresql/backups /var/lib/authentik/backups /var/lib/lego/backups @@ -187,7 +187,7 @@ services: environment: SKIP_INIT: "true" RUN_ON_STARTUP: "false" - PRUNE_CRON: "47 3 * * *" + PRUNE_CRON: "00 47 3 * * *" RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}' TZ: Europe/Berlin diff --git a/docker-compose.test.yml b/docker-compose.test.yml index b41ec6c..0594762 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -124,7 +124,7 @@ services: [[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose docker compose exec -T postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql RUN_ON_STARTUP: "false" - BACKUP_CRON: "32 2 * * *" + BACKUP_CRON: "00 32 2 * * *" RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}' RESTIC_BACKUP_SOURCES: /var/lib/postgresql/backups /var/lib/authentik/backups /var/lib/lego/backups @@ -154,7 +154,7 @@ services: environment: SKIP_INIT: "true" RUN_ON_STARTUP: "false" - PRUNE_CRON: "47 3 * * *" + PRUNE_CRON: "00 47 3 * * *" RESTIC_REPOSITORY: sftp://${RESTIC_REPO_USER:?Restic repository user is required}@${RESTIC_REPO_ADDRESS:?Restic repository address is requried}:${RESTIC_REPO_PORT:?Restic repository port is required}//backup RESTIC_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}' TZ: Europe/Berlin