6 lines
210 B
Bash
6 lines
210 B
Bash
|
backup_path="$BACKUP_LOCATION/immich"
|
||
|
mkdir -p "$backup_path"
|
||
|
|
||
|
cd /opt/services/immich || exit
|
||
|
docker compose exec database sh -c 'pg_dump -U "$DB_USERNAME" "$DB_DATABASE"' | gzip >"$backup_path/immich.sql.gz"
|