How to install and configure rsync Data Synchronization in Windows

Source: Internet
Author: User
Tags rsync

Rsync configuration Environment
Software Platform: Windows2003
Software Version: cwrsync_2.0.10_installer cwrsync_server_2.0.10_installer
Hardware Platform: dell2950 cpu1.6g * 4 Memory: 4G hard drive: 1g * 6 RAID5

=== Installation ===

To install rsync in Windows, you must install the server and client.

Server Installation: Run cwrsync_server_2.0.10_installer
Client installation: Run cwrsync _ 2.0.10 _ installe

The installation steps are the same as those on the server side.

=== Configuration ===
The configuration is the same as the configuration in Linux. Find the rsync. conf file in the installation directory for Configuration:

Rsync. conf file:

PID file =/var/run/rsyncd. PID

Lock file =/var/run/rsync. Lock

Log File =/var/log/rsyncd. Log

Uid = Administrator

Gid = Administrator

Use chroot = No

Max connections = 4

Syslog facility = local5

[Test]

Path =/cygdrive/D/wlk

Comment =/cygdrive/D/wlk comment = backup client is Solaris 8 e250
Ignore errors # ignore unrelated Io errors
Read Only = yes # Read-Only
List = No # column Files Not Allowed
Auth users = inburst # The authenticated user name. If this row does not exist,

Indicates that it is anonymous.
Secrets file = ETC/inburst. Pas # authentication file name

Generate a password file on the server. ETC/inburst. Pas

Open notepad

Inburst: hack

Save the files in the ETC file under the installation path and the files below as inburst. Pas

Start rsyncserver in the service and change the Startup Type to automatic
In this way, the server has been installed and configured.

Test from the client
In the following command line, the V in vzrtopg is verbose, z is compressed, R is recursive, and topg is used to keep original file attributes such as owner and time.
. -Progress indicates display.

For detailed progress,-delete means that if the server deletes the file, the client also deletes the file accordingly to ensure true consistency.
In inburst @ IP,

Inburst is the user name in the specified password file, followed by: inburst this inburst is the module name, which is customized in/etc/rsyncd. conf
. The last/tmp is backup.
To the local directory name.
You can also use the-e SSH parameter to establish an encrypted connection. You can use-password-file =/password/path/file to specify the password
In the script.

You do not need to enter the authentication password interactively. Note that the permission attribute of this password file must be set to only the owner and readable.

Run cmd on the client

Rsync-AV 10.0.0.16: 401/cygdrive/h/401

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.