用户名:
密 码: 记住
您当前的位置:首页 > 站长百科 > 服务器技术

cwRsync 4.0.5 文件同步配置步骤分享

时间:2015-01-18  来源:互联网  作者:佚名
测试成功,整理一份文档给你

同步工具:cwRsync

① 服务端:cwRsyncServer_4.0.5_Installer(安装过程会添加windows账户SvcCWRSYNC);客户端:cwRsync_4.0.5_Installer

② 服务端配置rsyncd.conf,web工程安全选项卡中为SvcCWRSYNC添加完全控制权限,例外端口:52326,创建密匙文件:server_key,最后启动服务

③ 客户端创建密匙文件:client_key,

④ 修改服务端和客户端密匙文件权限

"D:\Program Files\ICW\Bin\chmod.exe" -c 600 /cygdrive/d/"program files"/cwrsync/bin/client_key
"D:\Program Files\ICW\Bin\chown.exe" administrator /cygdrive/d/"program files"/cwrsync/bin/client_key

⑤ 本地同步服务器脚本
rsync -avz --progress --exclude='*.config' --delete /cygdrive/d/publish/chinahbnet/* rsync://xzl@192.168.1.9:52326/t_chinahbcom <D:\"Program Files"\cwRsync\bin\client_key
pause

需要注意的地方:

rsync://xzl@192.168.1.9:52326
而非
xzl@192.168.1.9:52326
如果没有rsync://则会提示ssh相关的错误
加密机制
来顶一下
返回首页
返回首页
推荐资讯
【图文教程】dede织梦网站后台如何发表文章? 【图文教程】dede织梦网站后台如何对于新手站长可能不了解,dede织梦后台是如何发文章的。下面
2014站长圈十大事件:PR已死 移动算法兴起 2014站长圈十大事件:PR已死 移动算2014年即将过去,虽然站长圈相比过去几年稍显沉寂,但&ldquo
相关文章
    无相关信息
栏目更新
栏目热门