验证中...
Languages: Shell
Categories: 其他
Latest update 2019-11-09 19:28
rsyncRemoteApplication.sh
Raw Copy
#!/bin/bash
remoteHost=$1
app_arr=(
qding-hk-message-service
qding-hk-rest-message
qding-hk-rest-task
qding-hk-rest-user
qding-hk-task-service
qding-hk-user-service
)
for app in ${app_arr[@]}
do
# 获取/data/work下的软连接
app_src=$(readlink /data/work/${app})
if [ -n ${app_src} ];then
cd /tmp && expect transmission.exp ${app} ${remoteHost}
fi
if [ -f /data/Application/${app}/${app}.jar ];then
cd /data/Application
rsync -e ssh -azv --exclude ${appName}/logs ${remoteHost}:/data/Application
fi
echo $app
done

Comment list( 0 )

Sign in for post a comment

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603