Two Windows7 machines
server:192.168.12.104
client:192.168.12.103
Purpose: To synchronize the contents of the E-disk directory FYFR on the server to the FYFR directory under the D disk on the client.
(No user password authentication, direct anonymous connection synchronization)
Configuration steps:
Service-Side server:192.168.12.104
Installing Cwrsyncserver_4.1.0_installer
Go to the installation directory C:\Program files (x86) \ICW, open the configuration file rsyncd.conf
The content is configured as:
UID = 0
GID = 0
Use Chroot = False
Strict modes = False
Hosts allow = *
Log file = Rsyncd.log
# Module Definitions
# Remember Cygwin naming conventions:c:\work becomes/cygwin/c/work
#定义被同步的目录
[Parker]
Path =/cygdrive/e/fyfr
Read Only = False
Transfer logging = yes
Open Service Services
Method: Start-and-run-->services
To find a service named Rsyncserver, click Open
Turn off the firewall, if you must turn on the firewall, configure allow ports to pass through the firewall
Client client:192.168.12.103
Installing Cwrsyncclient_4.1.0_installer
Open cmd and do the following to test if you can connect to the server properly
Telnet 192.168.12.104 22
Telnet 192.168.12.104 873
If the test is successful, you can synchronize the files
CD C:\Program Files (x86) \cwrsync\bin
RSYNC-VZRTOPG--progress--delete 192.168.12.104::p arker/cygdrive/d/fyfr
You can write the above two commands into the bat file to make a scheduled task execution
rsync sync files between Windows servers