#!/usr/bin/env sh set -eu if [ $# -ne 1 ]; then echo "Usage: scripts/restore.sh backups/file.sql" >&2 exit 1 fi cd "$(dirname "$0")/.." docker compose exec -T postgres psql -U "${POSTGRES_USER:-nexapantry}" "${POSTGRES_DB:-nexapantry}" < "$1"