Add complete NexaPantry application structure including: - Docker Compose configuration with PostgreSQL, Redis, FastAPI backend, worker, frontend and Caddy - Environment configuration template with database, auth, and service settings - GitHub Actions CI workflow for backend/frontend linting, testing, auditing and Docker builds - AGPL-3.0 license and comprehensive README with setup, development, and security documentation - Backend
12 lines
250 B
Bash
Executable File
12 lines
250 B
Bash
Executable File
#!/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"
|
|
|