#!/bin/bash # Resumable copy of the cluster-built patch sets (PANDA, TCGA-OT) to the Thesis drive. Rerun to resume. DEST=/run/media/than-minh/Thesis/TTA-packets/patch-sets SRC=/mnt/vast-kisski/projects/kisski-imm/thanm_WSI/embedding-acquire/hpc-run/topk-build/patch-sets-out for ds in PANDA TCGA-OT; do mkdir -p $DEST/$ds nice -n 19 ionice -c3 rsync -a --partial --inplace --include='*.pt' --exclude='*' -e "ssh -o BatchMode=yes" hpc:$SRC/$ds/ $DEST/$ds/ || echo "rsync $ds exit $?" done echo "finished $(date -Is)"