是否有一种方法来构建Windows服务器,对于其他带有rsync的Windows文件服务器来说,什么是目标服务器?
发布于 2011-03-23 21:07:34
您想使用rsync有什么原因吗?如果我是您,我会使用内置在Windows中的本机DFS-R功能。
发布于 2021-10-06 01:00:16
您可以使用带有rsync包的西格温轻松创建Windows服务器。您所要做的就是安装西格温并确保包含rsync (使用setup-x86_64.exe安装程序列出在'Net‘类别下)。在您的服务器上安装Cygwin之后,打开一个终端窗口/会话并执行以下操作:
auth users = myuser secrets file = /home/myuser/rsyncd.secrets hosts allow = 192.168.1.2,192.168.1.8 log file = /home/myuser/rsyncd.log port = 8730 use chroot = yes read only = yes [Share1] path = /cygdrive/e/pathtofolder [Share2] path = /cygdrive/f/pathtofolder
修改配置以满足您的特定需求。myuser:mysecretpassword
)chmod 600 ./rsyncd.secrets
rsync --daemon --config=/home/myuser/rsyncd.confg --no-detach
)上的cli测试/运行守护进程rsync -rdt rsync://myuser@rsyncserver:8730
命令应该列出可用的共享。rsync -rdt rsync://myuser@rsyncserver:8730/Share1 Password:mysecretpassword
命令应该列出指定共享中的所有文件。noacl
选项,否则在同步时可能会遇到各种奇怪的文件权限问题。(前)# /etc/fstab # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/using.html#mount-table # This is default anyway: none /cygdrive cygdrive binary,noacl,posix=0,user 0 0
如果发生任何错误,请检查服务器的rsyncd.log (配置为/home/myuser/rsyncd.log)
参考文献:
发布于 2011-06-16 09:44:02
我找到了一个很好的工具Yintersync - Rsych for Windows来管理多个windows服务器的复制。我每天在10台服务器上使用2mbit宽带连接复制超过2tb。
https://serverfault.com/questions/251062
复制相似问题