Dreambooth-Ion-Cannon
Dreambooth-Ion-Cannon copied to clipboard
upload and down
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