码迷,mamicode.com
首页 > 其他好文 > 详细

配置rsync的本地同步

时间:2014-08-25 22:31:44      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:使用   文件   ar   art   sp   on   c   res   bs   

使用命令进行同步

每天的三点过5分执行同步,加超时

5 3 * * * root timeout 7200  rsync -qvzrtopg    /zbkc /sdl

5 3 * * * root timeout 7200  rsync -qvzrtopg --delete   /zbkc /sdl

让配置文件生效

crontab /etc/crontab 

重启服务

/etc/init.d/cron restart

配置rsync的本地同步

标签:使用   文件   ar   art   sp   on   c   res   bs   

原文地址:http://www.cnblogs.com/zphj1987/p/3935948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!