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