5 lines
210 B
Bash
Executable file
5 lines
210 B
Bash
Executable file
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"
|