ismism/cli/dbpull.zsh
2023-03-08 15:11:06 +08:00

12 lines
214 B
Bash

ssh i zsh < cli/dbexport.zsh
rm -rf dbexport
scp -r i:dbexport dbexport
cd dbexport
zip -r ~/work/ismism/dbexport/dbexport-$(date +%Y%m%d-%H%M).zip .
cd ..
deno run -A cli/dbset.js
zsh cli/dbimport.zsh dbexport