Update some roles

This commit is contained in:
Tobias Reisinger 2024-04-29 14:35:15 +02:00
parent eb6052e4ec
commit 5ff07b77b4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 7 additions and 4 deletions

View file

@ -2,4 +2,4 @@ backup_path="$BACKUP_LOCATION/immich"
mkdir -p "$backup_path"
cd /opt/services/immich || exit
docker compose exec database pg_dump -U "$DB_USERNAME" "$DB_DATABASE" | gzip >"$backup_path/immich.sql.gz"
docker compose exec database sh -c 'pg_dump -U "$DB_USERNAME" "$DB_DATABASE"' | gzip >"$backup_path/immich.sql.gz"