Rsync is a good file synchronization tool, we need a server and a client. can achieve the local
Files are synchronized to the server, or the server-side files can be synchronized locally.
1, http://rsync.samba.org/download Cwrsync client (cwrsync) and server-side (cwrsyncserver).
2, server-side (assuming IP address: 192.168.1.100) Installation: Install by default option.
After installation, the service defaults to manual startup mode, and to Administration tools/service Management, start the "rsyncserver" service and modify "Rsyncserver" for automatic startup mode.
3, server-side configuration: Edit the rsyncd.conf file, write the following information:
The following is a code fragment:
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
#
[Test]
Path =/cygdrive/d/temp #指定服务端用来同步的文件, which represents the "D:temp" folder
Read Only = False
Transfer logging = yes
Description: [Test] is the module definition to be synchronized, you can define multiple modules, path is the disk path,/cygdrive/d/temp corresponds to the D:temp folder, because Cwrsync software in Windows can not directly hang the letter, the use of/cygdrive/ This pattern.
4, in another machine installation client (assuming IP address: 192.168.1.101), in the command line mode, into the installation directory under the Bin folder, execution: Rsync-avr 192.168.1.100::test/cygdrive/d/temp, This allows the server-side files to be synchronized locally.