Files
paperclip/scripts/backup-db.sh
Dotta 5346a4faef fix: correct pnpm filter name in db:backup script
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>
2026-03-03 13:01:00 -06:00

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 "$@"