Rsync目录实时同步

54次阅读
没有评论
源目录/test1/
目标目录/test2/

while inotifywait -rqq /test1/
do
rsync -a --delete /test1/ /test2/
done
正文完
 
评论(没有评论)