#!/usr/bin/env bash
# Pull TSS replay dirs from the server for local study.
# Run once manually: bash fetch_replays.sh

set -euo pipefail

REMOTE="srebot"
REMOTE_PATH="/mnt/HC_Volume_105581488/STORAGE/REPLAYS/TSS/"
LOCAL_PATH="./replays_sample"

mkdir -p "$LOCAL_PATH"

rsync -avz --progress \
    --include="*/" \
    --include="replay_data.json.gz" \
    --exclude="*" \
    "${REMOTE}:${REMOTE_PATH}" \
    "$LOCAL_PATH/"

echo "Done. Files in: $LOCAL_PATH"
