13 lines
614 B
Bash
Executable File
13 lines
614 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Mirror the player reports, the keeper's replies and the players' screenshots
|
|
# to a local folder, and write a digest beside them for reading. Run from the
|
|
# repository root:
|
|
# deploy/pull-reports.sh [host] [folder] (default ~/Desktop/wyrm-reports)
|
|
set -euo pipefail
|
|
HOST="${1:-__IP__}"
|
|
OUT="${2:-$HOME/Desktop/wyrm-reports}"
|
|
mkdir -p "$OUT/images"
|
|
scp -q "root@$HOST:/var/lib/wyrm/feedback.jsonl" "$OUT/feedback.jsonl" 2>/dev/null || : > "$OUT/feedback.jsonl"
|
|
rsync -aq "root@$HOST:/var/lib/wyrm/feedback-images/" "$OUT/images/" 2>/dev/null || true
|
|
npx tsx deploy/report-digest.ts "$OUT"
|