#!/bin/bash case $1 in cnc) 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 " 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