上次的版本http://blog.chinaunix.net/uid-21142030-id-5613029.html
-
[11:00 t ~]$ cat while.t
-
#!/bin/bash
-
set -x
-
LOGPATH='opt app data app1'
-
PROJECT=talentest
-
sleeptime=0.5h
-
-
while :
-
do
-
time /bin/bash /bin/rsync.t "$LOGPATH" $PROJECT
-
sleep $sleeptime
-
done
阅读(1564) | 评论(0) | 转发(1) |