The installation and configuration of rsync under Windows

Source: Internet
Author: User
Tags rsync

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.