fix docker compose command for backup

This commit is contained in:
Philip Henning 2024-11-26 19:01:44 +01:00
parent 99a81eff69
commit 4f2a71a20e

View file

@ -150,7 +150,7 @@ services:
PRE_COMMANDS: |- PRE_COMMANDS: |-
cd /sso.base23.de/ cd /sso.base23.de/
[[ $($(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 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: "true"
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