Implement Windows Backup in step 4 of cwrsync

Source: Internet
Author: User
Tags connection reset rsync

Server:
Http://rsync.samba.org/server side (cwrsyncserver ).
Installation Directory: e: \ cwrsyncserver
Port 52326
IP: 219.152.120.82

1. 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 # specify the user's logon Password File
Motd file = rsyncd. motd # Welcome information displayed when you connect to the 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
#################################
Ii. Create a new password file rsyncd. Secrets in the E: \ cwrsyncserver directory with the username: Password
For example, tly: fjs249slke
Client:
Http://rsync.samba.org/download cwrsync client (cwrsync)
Installation Directory: e: \ cwrsync
3. Create a new password file rsyncd. Secrets in the E: \ cwrsyncserver directory.
For example, fjs249slke
4. Start-> Run-> run cmd and enter the following command to synchronize the t_task module on the server to the E:/y directory on the client.
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

If the synchronization service fails, 1. Check whether the server has opened a service port. Run the command line (netstat-A) to check the port opened by the server. The port 52326 above. 2. Whether the client command line input (Telnet Server IP Service port) can connect to the server. 3. Check whether the configuration file is the same as above.

Note: The above is an anonymous connection to the server. Generally, auth user = odinxu is added to the module to specify the user. You must note that the specified user must log on to the module to synchronize the service. I have been here for a long time. I have specified a user in the module, and the user has not logged on, resulting in an error.

Common Errors for beginners:

Error 1: rsync: read error: Connection reset by peer (104)
Rsync error: Error in rsync protocol data stream (Code 12) at Io. C (794) [receive
R = 3.0.2]

Solution: The Rsync service is not enabled on the server. Enable 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]

Solution: the synchronization directory on the server has no permission. The default user of cwrsync is svcwrsync. Add the user svcwrsync permission to 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]

Solution: Add lock file = rsyncd. Lock to the configuration file rsync. conf.
More specific implementation method can refer to: http://www.jb51.net/article/19663.htm

Related Article

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.