#!/bin/bash # -------------------------------------------------------------------- # Transfer multiple experiment result folders from Torch → Greene # using SCP (no rsync) # Author: Gappu # Date: 2025-10-27 # -------------------------------------------------------------------- DTN="dtn-1" USER="jp7467" BASE_DST="/scratch/${USER}/Results/fineweb-15b" LOGFILE="scp_transfer_$(date +%Y-%m-%d_%H-%M-%S).log" echo "=== Starting SCP transfer at $(date) ===" | tee -a "$LOGFILE" DIRS=( "/scratch/${USER}/Results/fineweb-15b/2025-10-22/04:59:03.443588" # 30B tokens 8k length "/scratch/${USER}/Results/fineweb-15b/2025-10-19/15:05:06.520808" # gdn 2x state "/scratch/${USER}/Results/fineweb-15b/2025-10-19/14:01:15.430122" # wrope-rope intp 4 8 16 32 opensource "/scratch/${USER}/Results/fineweb-15b/2025-10-19/00:24:46.370316" # correct-rope intp 4 8 16 32 adaptive-v2 "/scratch/${USER}/Results/fineweb-15b/2025-10-12/17:03:52.156332" # cat-4 fixed chunk_size_4 "/scratch/${USER}/Results/fineweb-15b/2025-10-12/17:02:29.629343" # cat-8 "/scratch/${USER}/Results/fineweb-15b/2025-10-12/06:32:16.755461" # cat-16 "/scratch/${USER}/Results/fineweb-15b/2025-10-12/06:29:08.235852" # cat-32 ) for SRC in "${DIRS[@]}"; do echo ">>> Transferring: $SRC" | tee -a "$LOGFILE" # Extract relative subpath to keep folder structure consistent REL_PATH="${SRC#/scratch/${USER}/Results/fineweb-15b/}" DST_DIR="${BASE_DST}/$(dirname "$REL_PATH")" # Ensure target directory exists on Greene ssh ${DTN} "mkdir -p '$DST_DIR'" | tee -a "$LOGFILE" # Perform copy with preserved permissions/timestamps scp -rp "$SRC" "${DTN}:${DST_DIR}/" | tee -a "$LOGFILE" echo ">>> Done: $SRC" | tee -a "$LOGFILE" echo | tee -a "$LOGFILE" done echo "=== SCP transfer complete at $(date) ===" | tee -a "$LOGFILE"