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