alpine-server/bin/load-databases
2025-08-17 15:01:12 +02:00

12 lines
240 B
Bash
Executable file

#!/bin/sh
command="/usr/bin/podman"
# Loads dumped databases
postgres_databases=""
for database in $postgres_databases
do
$command exec -it ${database}-pod-postgres sh -c "gunzip -c /dump/${database}.sql.gz | psql -U postgres"
done