Cwrsync Four steps to implement Windows Backup _win server

Source: Internet
Author: User
Tags connection reset rsync
Server side:
http://rsync.samba.org/Server Side (Cwrsyncserver).
Installation directory: E:\cwRsyncServer
Port: 52326
ip:219.152.120.82

One: Modify the cwrsyncserver configuration file E:\cwRsyncServer\rsyncd.conf
#########
Port = 52326
Use Chroot = False
Strict modes = False
Read Only = yes
List = no
Hosts allow = *
Max connections = 10
Secrets file = Rsyncd.secrets #指定用户登录的密码文件
MOTD the Welcome information displayed when the file = RSYNCD.MOTD #连接上rsync server
Log file = Rsyncd.log
PID file = Rsyncd.pid
Transfer logging = yes

# Module Definitions
# Remember Cygwin naming conventions:c:\work becomes/cygwin/c/work
#
[Test]
Path =/cygdrive/c/work
Read Only = False
Transfer logging = yes

[T_task]
Path =/cygdrive/c/work
Read Only = False
Transfer logging = yes
#################################
Two: In the E:\cwRsyncServer directory new password file rsyncd.secrets content for user name: password
such as: Tly:fjs249slke
Client:
http://rsync.samba.org/Download Cwrsync Client (Cwrsync)
Installation directory: E:\cwRsync
Three: Under the E:\cwRsyncServer directory new password file rsyncd.secrets content for password
such as: Fjs249slke
Four: Start –> run –>cmd Enter the following command to synchronize the server-side T_task module to the client e:/y directory.
E:\cwrsync\bin\rsync.exe-vazu–exclude article/–progress–delete–

Password-file=e:\cwrsync\rsyncd.secrets

rsync://odinxu@219.152.120.82:52326/t_task/cygdrive/e/y

Do the sync service, if not, 1. Check to see if the server has an open service port, and command line input (NETSTAT-A) to view the port on which the server is open. Is the 52326 port above. 2. Client command line input (Telnet service-side IP service port) can connect to the server side. 3. Check to see if the configuration file is the same as above.

Note: The above for anonymous connection to the server side, the general will add auth in the module user= odinxu designated users, it is important to note that the specified user must be logged in order to synchronize services. I pinch here for a long time, the module specified the user, the user did not log in, resulting in an error.

Common Mistakes for Beginners:

Error 1:rsync:read error:connection reset by Peer (104)
Rsync Error:error in Rsync protocol The data Stream (code) at IO.C (794) [Receive
r=3.0.2]

Workaround: It is likely that the server side did not turn on rsync services. Open the service.

Error 2: @ERROR: ChDir failed
Rsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1495) [Rec
eiver=3.0.2]

Workaround: Server-side Sync directory does not have permissions, cwrsync Default User is Svcwrsync. Add user Svcwrsync permissions for the synchronization directory.

Error 3: @ERROR: Failed to open lock file
Rsync Error:error starting Client-server Protocol (code 5) at MAIN.C (1495) [Rec
eiver=3.0.2]

Workaround: Add lock file = Rsyncd.lock to the profile rsync.conf to resolve.
More specific implementation methods can refer to: http://www.jb51.net/article/19663.htm

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.