1. Purpose of construction
Rsync is a popular data synchronization tool that synchronizes data from one server to another, and the following is my process of building rsync.
2.Rsync Service-Side building
First download cwrsyncserver (Baidu has), I used here is the version of 4.0.5.
2.1 Click Install this page, here I use the default path, and then next.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/1D/wKiom1SpHQqya_SoAAIPV24Eyfg653.jpg "title=" 02.png "alt=" Wkiom1sphqqya_soaaipv24eyfg653.jpg "/>
2.2 Here you can enter the user name and password you want (my use of Rsynctest/password), the system will also create the corresponding user, you can after the installation is completed to user management to view.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/19/wKioL1SpHpiiXYvqAAJic_xEfjM892.jpg "title=" 03.png "alt=" Wkiol1sphpiixyvqaajic_xefjm892.jpg "/>
2.3 In the list of services, locate Rsyncserver set to start automatically and click Apply, and then start it again.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1D/wKiom1SpHwPClAdpAAJVaqqZfK8541.jpg "title=" 04.png "alt=" Wkiom1sphwpcladpaajvaqqzfk8541.jpg "/>
2.4 Enter the login password for this service, which is the password password for the user name that we created at the time of installation.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/1D/wKiom1SpH-KiFoAlAAHvHsc5938415.jpg "title=" 05.png "alt=" Wkiom1sph-kifoalaahvhsc5938415.jpg "/>
2.5 Find rsync and add it in the Add a program in the firewall.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/19/wKioL1SpIRqSnq59AAKeUJJJyLk571.jpg "title=" 06.png "alt=" Wkiol1spirqsnq59aakeujjjylk571.jpg "/>
2.6 Here we use 1500 as the communication port for rsync (typically using a port between 1025-65535).
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/1D/wKiom1SpIMPjOkJ3AADQzV0Q7BQ733.jpg "title=" 07.png "alt=" Wkiom1spimpjokj3aadqzv0q7bq733.jpg "/>
2.7 Under the C drive, create a folder named Rsync_server_file folder as the rsync server to place data, set up two txt files to do the test.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/19/wKioL1SpIv7Ao90kAACgTzPQsl8114.jpg "title=" 08.jpg "alt=" Wkiol1spiv7ao90kaacgtzpqsl8114.jpg "/>
2.8 In the installation directory of etc under the creation of a passwd.txt text (suffix can be changed), the role of this file is the client login to verify the need to fill in the information, meaning the user named Rsuser password for Rspass.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/1D/wKiom1SpIuHCDeflAAEEiwKxt_c818.jpg "title=" 09.jpg "alt=" Wkiom1spiuhcdeflaaeeiwkxt_c818.jpg "/>
2.9 Modify the server configuration file, you need to locate the rsyncd.conf file under the installation directory. This step of the configuration is critical to do more checking.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1D/wKiom1SpJlriQ-llAALvye9h0QI258.jpg "title=" 10.png "alt=" Wkiom1spjlriq-llaalvye9h0qi258.jpg "/>
2.10 After completing the above configuration, restart the service to the list of services and use telent to test whether the port is already open.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1D/wKiom1SpJx_Rgy5iAACuLH2_TyM232.jpg "title=" 11.jpg "alt=" Wkiom1spjx_rgy5iaaculh2_tym232.jpg "/>
3.Rsync Client Configuration
3.1 Download Install rsync client, there is no configuration here is the next step.
3.2 Create the Rsync_client_file folder under H disk as a place to store synchronized data.
3.3 Create pass.conf (username) under H Drive, Passwd.txt (password) two files are called in the validation script.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1E/wKiom1SpLFaRvhDTAAFGZodDDHY354.jpg "title=" 12.jpg "alt=" Wkiom1splfarvhdtaafgzodddhy354.jpg "/>
3.4 Create an automatic synchronization script that is saved as a. bat format when it is created.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/1E/wKiom1SpLWzwy88UAAHdw2oTTYg756.jpg "title=" 13.jpg "alt=" Wkiom1splwzwy88uaahdw2ottyg756.jpg "/> 3.5 Execute script to view the results.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/1E/wKiom1SpLd3SUULPAADk5PEEuG8245.jpg "title=" 14.jpg "alt=" Wkiom1spld3suulpaadk5peeug8245.jpg "/>
3.6 We can use timed tasks in Windows and our bat combination to achieve timed synchronization.
Setting up rsync sync data on Windows