c68dfa9057
- CHANGELOG.md: add [Unreleased] 2026-04-16 section covering settings page, admin tools, password reset, re-extract, community page, SSE upload progress, and all bug fixes since 2026-04-10 - Remove docs-proposal.md (internal planning doc, not user-facing) - Remove publish/ directory (leftover artefacts from publish.sh, not meant to be tracked) - scripts/pull_feedback.sh: replace hardcoded default VPS IP with a required positional argument to avoid leaking server address - docs/squash-for-github.md: document the squash-for-github commit strategy for future reference
23 lines
673 B
Bash
Executable File
23 lines
673 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pull user feedback from the VPS into ./feedback/ locally.
|
|
# Usage: bash scripts/pull_feedback.sh <user@host>
|
|
|
|
set -e
|
|
VPS=${1:?Usage: $0 user@host}
|
|
REMOTE=/var/bincio/data/_feedback
|
|
LOCAL=$(dirname "$0")/../feedback
|
|
|
|
mkdir -p "$LOCAL"
|
|
|
|
echo "Syncing feedback from $VPS:$REMOTE → $LOCAL"
|
|
rsync -avz --progress "${VPS}:${REMOTE}/" "$LOCAL/"
|
|
|
|
echo ""
|
|
echo "=== Feedback summary ==="
|
|
for f in "$LOCAL"/*.json; do
|
|
[[ -f "$f" ]] || continue
|
|
handle=$(basename "$f" .json)
|
|
count=$(python3 -c "import json,sys; d=json.load(open('$f')); print(len(d) if isinstance(d, list) else 1)" 2>/dev/null || echo "?")
|
|
echo " @$handle: $count submission(s)"
|
|
done
|