标签:linux-shell
#!/bin/bash
declare x=0
function check
{
for i in `ps -ef | grep rsync`
do
if [[ $i =~ "-vzrtP" ]]; then
x=1
fi
done
return $x
}
check
[[ $x -eq 0 ]]&&nohup rsync -vzrtP --exclude ‘*kb/‘ --exclude ‘*.m3u8‘ --exclude ‘*.jpg‘ -u SvcCWRSYNC@45.61.238.215::small /home/www/media/videos/iphone/&
本文出自 “IT屌丝” 博客,请务必保留此出处http://68686789.blog.51cto.com/10438688/1752683
标签:linux-shell
原文地址:http://68686789.blog.51cto.com/10438688/1752683