Dreambooth-Ion-Cannon icon indicating copy to clipboard operation
Dreambooth-Ion-Cannon copied to clipboard

upload and down

Open dcsan opened this issue 2 years ago • 0 comments

this might be useful to people, I made a justfile for syncing local/remote files using rsync. if it's useful I could make a PR ...

justfile

# https://github.com/casey/just

# assumes you have symlinked the right file to .env
set dotenv-load

default:
    @just --list

checkenv:
  @echo "vastPort: $vastPort vastLogin: $vastLogin"

sync-down: checkenv
  rsync -avu -e "ssh -p $vastPort -i ~/.ssh/rikai.pub -o StrictHostKeyChecking=no -l root" $vastHost:/workspace/Dreambooth-Ion-Cannon/outputs synced

sync-up: checkenv
  rsync -avu -e "ssh -p $vastPort -i ~/.ssh/rikai.pub -o StrictHostKeyChecking=no -l root" synced/inputs/emma/ $vastHost:/workspace/Dreambooth-Ion-Cannon/training_samples/woman

and a .env file in the same directory with your vast config

# .env 
vastPort=39443
vastHost=ssh5.vast.ai
vastLogin=root@$vastHost

you can get the port etc from the instances dashboard here

image

dcsan avatar Oct 26 '22 05:10 dcsan