From 854da26eaab225eccf02bb726ee61c1d78c859b0 Mon Sep 17 00:00:00 2001 From: Philip Henning Date: Tue, 28 Jan 2025 19:23:10 +0100 Subject: [PATCH] disable run on startup for backup --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2caf215..c495333 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -151,7 +151,7 @@ services: cd /compose-project/ [[ $($(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: "true" + RUN_ON_STARTUP: "false" BACKUP_CRON: "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}' @@ -180,8 +180,8 @@ services: image: registry.git.base23.de/base23/backup/resticker:0.17.0 environment: SKIP_INIT: "true" - RUN_ON_STARTUP: "true" - PRUNE_CRON: "47 1 * * *" + RUN_ON_STARTUP: "false" + PRUNE_CRON: "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