2018-05-01 16:01:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
cnc)
|
2019-05-12 11:06:49 +00:00
|
|
|
scp /home/armin/dev/btcollider/cnc/CnC/cnc.jar btcollider:~
|
2018-05-01 16:01:34 +00:00
|
|
|
;;
|
|
|
|
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
|