disable run on startup for backup
This commit is contained in:
parent
8b7386b315
commit
854da26eaa
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ services:
|
||||||
cd /compose-project/
|
cd /compose-project/
|
||||||
[[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose
|
[[ $($(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
|
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 * * *"
|
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_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_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
|
image: registry.git.base23.de/base23/backup/resticker:0.17.0
|
||||||
environment:
|
environment:
|
||||||
SKIP_INIT: "true"
|
SKIP_INIT: "true"
|
||||||
RUN_ON_STARTUP: "true"
|
RUN_ON_STARTUP: "false"
|
||||||
PRUNE_CRON: "47 1 * * *"
|
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_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_PASSWORD: '${RESTIC_REPO_PASSWORD:?Restic repository password is required}'
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue