change backup logic for postgresql
This commit is contained in:
parent
411a447b49
commit
def7756819
1 changed files with 1 additions and 2 deletions
|
@ -148,9 +148,8 @@ services:
|
||||||
image: registry.git.base23.de/base23/backup/resticker:0.11.0
|
image: registry.git.base23.de/base23/backup/resticker:0.11.0
|
||||||
environment:
|
environment:
|
||||||
PRE_COMMANDS: |-
|
PRE_COMMANDS: |-
|
||||||
[[ ! $(which docker-compose) ]] && apk add --update --no-cache docker-compose
|
|
||||||
cd /sso.base23.de/
|
cd /sso.base23.de/
|
||||||
docker-compose exec postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql
|
docker exec sso-base23-de-postgresql-1 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue