File size: 434 Bytes
9fc0ed7
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -euo pipefail

REMOTE="${PCMT_REMOTE:?Set PCMT_REMOTE, for example root@ssh6.vast.ai}"
PORT="${PCMT_REMOTE_PORT:-22}"
REMOTE_DIR="${PCMT_REMOTE_DIR:-/workspace/pcmt}"

mkdir -p runs/remote_gpu figures
rsync -az -e "ssh -p ${PORT} -o StrictHostKeyChecking=no" "${REMOTE}:${REMOTE_DIR}/runs/" runs/remote_gpu/
rsync -az -e "ssh -p ${PORT} -o StrictHostKeyChecking=no" "${REMOTE}:${REMOTE_DIR}/figures/" figures/