Rsync installation and configuration under Windows

Source: Internet
Author: User
Tags rsync

To download the Windows version of Rsync first

Rsync is divided into server side and client, to a (server side), B (client) 2 servers For example a IP address of 192.168.1.111 B is 192.168.1.123

1, first configure the server, install Cwrsyncserver_4.0.5_installer.exe on the server, install the path do not change, all with the default path, if you are using 64-bit operating system, please put the default path of program Files (x86) That (x86) deleted, during the installation of rsync will automatically create a username called rsync, and prompted you to enter the user's password, this is a key, this password must be your system user that is adminstrator password, if you are afraid of error will not have to control his direct point next, It is worth to complete the installation, at this time open your service check there is no rsyncserver service, if there is no word is that user password place is wrong, we recommend uninstall reinstall, if there is OK, finally check your firewall open 873 ports

The above is the server-side installation, then the configuration, find the installation directory of your rsync click inside there will be a rsyncd.conf configuration file, the Notepad to open him, in the front of the file append "uid = 0" "gid = 0" 2 lines, and then modify the content of "[]", Here the small series directly above the figure, there is a picture easier to read

Well, it's clear from the picture, and then in the service, find "Rsyncserver" modified to "auto open" and "start" the service.

2, Next is the client, first the client installs the Cwrsync_4.0.5_install.exe, also installs the time path not to change, all uses the default path, if you use is the 64-bit operating system, please put the default path in the program Files (x86) that (x86 Delete, after the installation is completed, create a new TXT text document, here Small series or above to illustrate

--timeout parameters, this is a time-out, when the server is busy or when the network is busy, rsync will be synchronized to half of the situation, with this parameter can be set for the time he has given you to do not have to do the operation is to cancel the command, which is very useful in the synchronization of multiple servers

--exclude parameter, exclude you specify a file or directory, this does not need to introduce more

--delete parameter, which means that the server side is consistent with the client, customer segment and server-side of different file clients will delete operations, where the small part of the proposed novice do not add this parameter, if the service end of the wrong operation delete the file that all your machines will be deleted this file, it will be very troublesome, So you can start without this argument.

In fact, the use of rsync there are many many kinds of small series introduced is a very practical and simple way, of course, interested students can also be more in-depth study of it oh.

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.