Rsync is divided into server side and client, with a (server side), B (client) 2 server as example a IP address of 192.168.1.111 B is 192.168.1.123
1, first configure the server side, install Cwrsyncserver_4.0.5_installer.exe on the server, install the path do not change, all with the default path, if you use a 64-bit operating system, the default path of the program Files (x86) That (x86) deleted, the installation process rsync will automatically establish a user name is called rsync, and prompts you to enter the user's password, here is the key, this password must be your system user is adminstrator password, if you are afraid of error, do not have to control his direct point next, It is worth to complete the installation, then open your service to check whether there is a rsyncserver service, if not the user password is wrong place, it is recommended to uninstall reinstall, if there is OK, and finally check if your firewall open 873 port
The above is the server side of the installation, and then is the configuration, find your rsync installation directory Click inside there will be a rsyncd.conf configuration file, open him in Notepad way, append "uid = 0" "gid = 0" 2 lines in the front of the file, and then modify the "[]" content, Here is a small series direct, there is a picture easier to read
Well, from the diagram it is clear to put, and then in the service found "Rsyncserver" modified to "automatically open" and the service "start".
2, Next is the client, first the client installs the Cwrsync_4.0.5_install.exe, the same time the installation path does not change, all with the default path, if you are using 64-bit operating system, the default path of the program Files (x86) That (x86) deleted, after the installation is complete, a new TXT text document, here the small part or to explain
--timeout parameter, this is a time-out setting, when the server is busy or the network is busy when rsync will be synchronized to half of the situation, with this parameter can be set in the time you specify that rsync does not operate the operation of the cancellation command, which is very useful when synchronizing multiple servers
--exclude parameter, exclude you to specify a file or directory, this does not have to introduce more
--delete parameter, this means that the server side and the client to maintain exactly the same, the customer segment and the service side of the different file client will be deleted, here the small proposal Novice do not add this parameter, if the service side mistakenly delete the file that all your machines will delete this file, it will be very troublesome, So we can not add this parameter first
In fact, the use of rsync there are many many kinds, small introduction is a very practical and simple way, of course, interested students can also be more in-depth study it oh.
Http://www.pc6.com/infoview/Article_65452.html
The installation and configuration of rsync under Windows