Windows Linux File sync cwrsync Tool

Source: Internet
Author: User

Cwrsync client server synchronization software configuration from windows to Windows

Prepare two machines.

Server IP Address: 192.168.1.18

Client IP: 192.168.1.139

Download the cwrsync software:

Server: cwrsync_server_2.0.10_installer.exe

Client: cwrsync_2.0.10_installer.exe

Installation and Configuration:

1. server side:

A.install the cwrsync_server_2.0.10_installer.exe software;

B. StartProgramOpen the "Start a Unix bash shell" program:

Enter a terminal similar to CMD and enter the following command:

$/Bin/activate-user.sh

Input L

Enter Administrator

Click Back to end;

C. Start opensshd.

Open "Control Panel" --> "Administrative Tools" --> "service ":

Find an opensshd service and start it;

D. Configure the rsyncd. conf configuration file.

Edit c: \ Program Files \ cwrsyncserver \ rsyncd. conf (in the directory where the software is installed) as follows:

# Global variables

Use chroot = false

Strict modes = false

Hosts allow = *

Log File = rsyncd. Log

PID file = rsyncd. PID

Secrets file = Password

# Module Definitions

# Remember cygwin naming conventions: C: \ work becomes/cygwin/D/backup

#

[Rsync] # Module name

Auth users = sunfang # User Name

Path =/cygdrive/D/test # The path here represents the D: \ test directory, which can be customized

Read Only = Yes

Transfer logging = Yes

Secrets file =/cygdrive/D/rsyncd. Secrets

E. Start the rsync service:

Open "Control Panel" --> "Administrative Tools" --> "service ":

Locate the rsyncserver service and start it.

The server end configuration ends, and the client end is configured.

2. Client:

A. Install the client software package: cwrsync_2.0.10_installer.exe;

B. Open CMD and perform the following operations to test whether the server has started the service properly:

Cd c: \ Program Files \ cwrsync \ bin (to the bin folder under the installation directory of the client software)

Telnet 192.168.1.18 22

Telnet to 192.168.1.18 873

If the test is successful, you can execute the synchronization plan:

Rsync-vzrtopg -- Progress -- delete -- password-file =/cygdrive/e/sunfang. PS sunfang@192.168.0.201: rsync/cygdrive/D/test

Here/cygdrive/e/sunfang. PS is the sunfang under the e disk of the client. PS file. The file contains the password of sunfang and only the password is saved./cygdrive/D/test is the test folder on the d drive of the client, used to save files synchronized from the server. (If the password file cannot be opened, the system will prompt you to enter the password. The username is sunfang, And the password is the logon password of sunfang)

Now, the synchronization between windows and Windows has been OK.

If you regularly synchronize files on the server, you can add them to the task plan.

Configuration file:

Synchronize Windows files in Linux:

Rsyncd. conf in Windows:

Use chroot = false

Strict modes = false

Hosts allow = *

Log File = rsyncd. Log

PID file = rsyncd. PID

Log File = rsyncd. Log

Secrets file = rsync. passwd

# Module Definitions

# Remember cygwin naming conventions: C: \ work becomes/cygwin/C/work

#

[Testxp]

Uid = 0

Gid = 0

Path =/cygdrive/C/1/BBS

Read Only = Yes

Transfer logging = Yes

Auth users = Tiger

Exclude = testf

Linux: rsync-vzrtopg -- Progress -- delete tiger@192.168.1.6: testxp/TIGER/

Synchronize windows rsync configuration directory to Linux machine/tiger directory

To upload: rsync-vzrtopg -- Progress -- delete/TIGER/* tiger@192.168.1.6: testxp/

Upload All files in the Linux/tiger directory to the Windows rsync testxp location

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.