deploy_local.sh 405 B

12345678910
  1. # nohup socat -v tcp-listen:12345,fork,reuseaddr tcp:192.168.0.137:22 &
  2. # rsync -e `ssh -p 60$2` -avR --delete --progress bin/ ./bin data/ ./data/ shell ./shell/ cfg/ ./cfg/ root@10.8.0.$1:/program/ctnd/
  3. target="192.168.0.11"
  4. if [ -z "$target" ];
  5. then
  6. echo "Please set target"
  7. exit
  8. fi
  9. rsync -avzR --update --progress bin/ ./bin data/ ./data/ shell ./shell/ cfg/ ./cfg/ root@$target:/program/ctnd/