The filter used `@paperclip/db` which doesn't exist — the package is `@paperclipai/db`. This caused "No projects matched the filters". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
408 B
Bash
Executable File
17 lines
408 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Backup the embedded PostgreSQL database to data/backups/
|
|
#
|
|
# Usage:
|
|
# ./scripts/backup-db.sh
|
|
# pnpm db:backup
|
|
#
|
|
# The embedded postgres must be running (start with: pnpm dev)
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
|
|
cd "$PROJECT_ROOT"
|
|
exec pnpm --filter @paperclipai/db exec tsx src/backup.ts "$@"
|