btcollider/btadmin

26 lines
590 B
Text
Raw Permalink Normal View History

#!/bin/bash
case $1 in
cnc)
2019-05-12 11:06:49 +00:00
scp /home/armin/dev/btcollider/cnc/CnC/cnc.jar btcollider:~
;;
doc)
cd docker && make
;;
log)
scp -r btcollider:~/logs /home/armin/dev/btcollider/logs/logs-$(date -Iseconds)
;;
dmp)
scp btcollider:~/dmp /home/armin/dev/btcollider/dmps/dmp-$(date -Iseconds)
;;
*)
echo "USAGE: ./btadmin <command>"
echo
echo "Commands:"
echo "cnc upload cnc to 35.196.141.41"
echo "doc build and upload docker image to gitlab"
echo "log download log files from 35.196.141.41"
echo "dmp download dump file from 35.196.141.41"
;;
esac