Windows Rsync Server installation uses

Source: Internet
Author: User
Tags rsync

Rsync is the next best software for synchronizing files on Linux, and it can be used under Windows, but the name is Cwrsync. This article mainly introduces the use of Windows as the server of Rsync, Linux for the use of the client.

Cwrsync is also divided into a client-side service,

Service side: Cwrsync_server_2.0.10_installer

Client: Cwrsync_2.0.10_installer


Window is served as a server, so download the file named Cwrsyncserver_4.0.5_installer.zip. After downloading the decompression installation, follow the wizard step by step, install the last need to enter a system account and password, this account is used to run the Cwrsync service, must have administrator privileges.

After the installation is complete, there is a configuration file named Rsyncd.conf file under the root directory of the installation. The revised content is as follows:

Use chroot = falsestrict modes = falsehosts Allow = *log File = rsyncd.log# If there is no Uid,gid setting the Linux client will prompt # invalid UID nobody Error UID = 0gid = 0# Specifies TCP port, default is 873# port = 1122# Definition module, can define multiple [test]# module corresponding system directory, need to use/cygdrive + drive letter Path =/cygdrive/c/work# for Authentication Module User Name Auth users = testuser# Store the authentication password file, stored in etc under the Testuser.pas # file name can be arbitrarily taken, the content is user name: password, such as "testuser:123" Secrets file = etc/ Testuser.pasread only = falsetransfer logging = yes

Start the service: Run-services.msc, locate the Rsyncserver in the Open Services Manager, or start and close using the command line.

Start service net start Rsyncserver stop service net stop Rsyncserver

Under Linux, use the following name to synchronize

Sync Linux under folder into window, RSYNC-VZRTP  --progress--delete--password-file=/xxx/rsyncd.secrets  /home/linuxdir/ Rsync://[email protected]:/test/Sync window under folder to Linux RSYNC-VZRTP  --progress--delete--password-file=/xxx/ Rsyncd.secrets  rsync://[email protected]:/test//home/linuxdir/

Note You need to use "rsync://" before the user name, otherwise you will be prompted "Connect to host XXX port 22:connection refused"; Password file content only password, do not need user name, and the file owner is root, the permission is 600 If you use a non-default port, you specify the port after the colon of the IP, and the port is the module name defined in the service configuration.

When the Rsync:chown "" "failed:invalid argument (22) error occurs because there is an O in the parameter, which preserves the owner information of the file, and the window server cannot complete the chown operation, the workaround is to remove the parameter O. Others may also appear rsync:chgrp "" Failed:invalid argument (22) for similar reasons, as long as the G in the parameter is removed.

Related Resources Link:

http://blog.csdn.net/gguxxing008/article/details/7018924

Http://bbs.ywlm.net/thread-915-1-1.html

Welcome reprint, reproduced Please indicate the source of the article, thank you!


Windows Rsync Server installation uses

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.