Synchronizing Linux data to Windows with Rsync

Source: Internet
Author: User
Tags rsync

Windows:win7,cwrsyncserver 4.1.0, login with admin

Linux:ubuntu 14.04,rsync 3.1.0

Networks: Using 360wifi

"Windows Side"

1. Install Cwrsyncserver, user name arbitrary, this is the use of Apache

2. Modify the rsyncd.conf configuration file

Use Chroot = False
Strict modes = False
Hosts allow = *
Log file = Rsyncd.log
UID = 0 #要加上这两行, or @error:invalid uid Nobody error will occur
GID = 0 #要加上这两行

[WWW]
Path =/cygdrive/d/rsync/www
Ignore errors
Read Only = no
List = no
Host Allow = 172.24.202.0/255.255.0.0
Auth users = rsync
Secrets file = Rsyncd.password
Transfer logging = yes

3. Create the Rsyncd.password file and put it in the Software installation directory

Rsync:password User name: password

4. Add C:\Program files (x86) \ICW to the System environment variable path to set permissions for Rsyncd.password files

chmod Rsyncd.password But it seems that the settings are invalid, and there is no need to set

5. Create D:/rsync/www folder, properties---security, add rsync users, and give all permissions

6. Turn off Windows Firewall

"Linux Side"

1. Create a directory/home/user/rsync

2. Create a directory/home/user/rsync/www

3. Create a file Rsyncd.password

Password note There is only the password, otherwise cwrsyncserver will appear password mismatch error

4. Set File Rsyncd.password permissions

chmod rsyncd.password #否则会出现 @ERROR: Password file must not being other-accessible error

5. telnet 172.24.202.1 873 to test if you can connect to the Rsync server in Windows

6. Rsync-avz www/[email protected]::www--password-file=rsyncd.password

Linux side: @ERROR: Auth failed on module www

Windows side: Missing secret for user "rsync"

The cause of this error is not yet known, and some articles say that because the permissions of Windows-side Rsyncd.password files are not set to 600, testing does not seem to matter

Reference:

http://www.ilanni.com/?p=8646

http://willvvv.iteye.com/blog/1480390

Synchronizing Linux data to Windows with Rsync

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.