Simple one-way synchronization configuration (client-side sync file to server):
Service side: Cwrsyncserver_4.1.0_installer
Client: Cwrsync_4.1.0_installer
: HTTP://PAN.BAIDU.COM/S/1O65QWJW
Because it is multiple server synchronization, tested, only install the service-side version to meet the requirements.
File push scheme: A->b->c->a,b as a service side, c as the service side of B, a as the server of C.
After the installation is complete, modify the configuration file rsyncd.conf:
Use Chroot = False strict modes = FALSE hosts allow = * log file = Rsyncd.log lock file = rsyncd.lock Max connection = 5 U id = 0 GID = 0 # Module Definitions # Windows Disk format requires conversion: C:\work becomes/cygwin/c/work # [rsync] path =/cygdrive/c/files aut H users = RSYNCD Secrets file =/cygdrive/c/rsyncd.secrets Read Only = False list = no transfer logging = yes
server-side create password file \ c \ rsyncd.secrets
rsyncd:123456 #用户名: Password
Create a synchronization directory C:\files\upload
Start the Windows service: Rsyncserver, and modify it to start automatically.
In case of failure to start, report the following error:
The description of the event ID (0) (in resource (RSYNCD)) could not be found. The local computer may not have the necessary registration information or message DLL files to display messages from the remote computer. You may be able to use the/auxsource= identity to retrieve the word description; see Help and support for more information. The following information is part of the event: Rsyncd:pid 748:uid 4294967295 ( -1) is impossible to set on "Upload/.2.txt. Ko64zd "(in Shouyou).
Solution: Delete the Rsyncd.pid file under the installation directory;
Permanent solution: Add a scheduled task to remove rsyncd.pid before each reboot .
See if the service has a startup, default is 873.
NETSTAT-ANP TCP
Server: 192.168.128.131, client: 192.168.128.132
Client to see if the server port is open:
Telnet 192.168.128.131 873
Synchronization method: Can be specified to the server Rsync.exe directory C:\Program files\icw\bin
RSYNC-VPRTOPG--delete--progress/cygdrive/c/files/upload [email protected]::rsync
--delete: Keep deleted files synchronized
The user is prompted to login password
No Password Synchronization method:
Client Add password verification file C:\rsyncd_client.secrets
Add Password only:
123456
To perform rsync again, you should not be prompted to enter the password now.
RSYNC-VPRTOPG--delete--progress/cygdrive/c/files/upload < c:\rsyncd_client.secrets [email Protected]::rsync
Finally, add a scheduled backup.
Crontab-e
*/3 * * * */USR/BIN/RSYNC-AV-E-ssh--delete/usr/local/myfiles/192.168.128.132:/usr/local/myfiles
Windows rsync configuration file synchronization