Win2003 Cwrsyncserver server-side and Cwrsync client Data Synchronization Instance Tutorial _ Servers Other

Source: Internet
Author: User
Tags administrator password rsync

Description

Cwrsyncserver Service End ip:192.168.21.128

Cwrsync Client ip:192.168.21.129

To achieve the purpose:

Synchronize data from the service-side D:\data directory to the client D:\data directory periodically through task scheduling

Attachment:

cwrsyncserver Download Address and cwrsync Download Address: http://s.jb51.net

Specific actions:

First, install Cwrsyncserver on the service side

Unzip Cwrsyncserver_4.0.3_installer.zip, double-click Cwrsyncserver_4.0.3_installer.exe

Next

I Agre (Agree)

Installation path, by default

Next

Service Account:svccwrsync (a new system account)

Type Password: password

Confirm Password: password

Note: The system will automatically create an account: Svccwrsync to run the Cwrsyncserver server program

The above information by default can be

Install (Installation)

Close (off), installation complete

Start-Settings-control Panel-management tools-services

Find the Rsyncsever option, double-click to open

Startup type: Automatic

Point "Start"

Service started successfully, point off

Are you sure

Open D disk, right-click the Data folder, select Properties, switch to Security options, click Add

Input: Svccwrsync

Are you sure

Allow all permissions

Application, determine

Open C:\Program FILES\ICW Directory

Open rsyncd.conf with Notepad, modify add the following (back up the file as Rsyncd.confbak before modifying)

Use Chroot = False

Strict modes = False

Hosts allow = *

Log file = Rsyncd.log

# Module Definitions

# Remember Cygwin naming conventions:c:\work becomes/cygwin/c/work

#

#[test]

#path =/cygdrive/c/work

#read only = False

#transfer logging = yes

[Data]

Path =/cygdrive/d/data

Read Only = True #客户端只读

List = no #不允许列出文件

Hosts allow=192.168.21.129 #允许连接IP, multiple IP intermediate in English state comma-separated, do not limit IP fill * can

Auth users =userdata #允许连接的用户名

Secrets file = Etc/rsyncd.secrets #存放用户名密码的认证文件路径

After the repair is complete, save the exit

Create a new Rsyncd.secrets file under the C:\Program files\icw\etc directory

Open with Notepad and enter the following

userdata:123456 #用户名: Password

Last Saved exit

Cwrsyncserver Service-side installation Setup Complete

Second, install Cwrsync on the client

Unzip Cwrsync_4.0.3_installer.zip, double-click Cwrsync_4.0.3_installer.exe

Next

I Agree

Next

Installation path, by default

Install (Installation)

Close (off), installation complete

Start-run-cmd

Enter Telnet 192.168.21.128 873 #测试客户端是否与服务端连接成功

The following interface appears, indicating successful connection

Note: The Cwrsyncserver server must open the firewall 873 port

When the test is complete, close the Command line window

Start-run-cmd

Are you sure

Input: cd C:\Program Files\cwrsync\bin

Continue typing: RSYNC-VZRTOPG--port=873--progress--delete [email protected]::d ata/cygdrive/d/data

Tip Enter Password: 123456

Start Synchronizing Data

Data Synchronization Complete

Open C:\Program Files\cwrsync\bin Directory

New Passwd.txt

Input: 123456

Save exit

Continue to New in C:\Program Files\cwrsync\bin directory

Data.bat file

Open with Notepad and enter the following

@echo off

Echo.

Echo begins synchronizing data, please wait ...

Echo.

CD C:\Program Files\cwrsync\bin

RSYNC-VZRTOPG--port=873--progress--delete [email protected]::d Ata/cygdrive/d/data < Passwd.txt

Echo.

Echo Data Synchronization complete

Echo.

Last Saved exit

Start-Settings-Control Panel-Task Scheduler

Double-click Add Task Schedule

Next

Browse to open C:\Program Files\cwrsync\bin\data.bat

Every day

Next

Select Time to execute daily

Next

Enter the system administrator password

Next

Complete

Task schedule Add complete, client every day 13:59 branch automatically synchronizes the data in the D:\data directory of the server to its own D:\data

Open Task Scheduler, right key data, properties, switch to schedule, select Advanced

You can set how often you want to perform one time

at this point, Windows Server 2003 Cwrsyncserver server-side and Cwrsync client data Synchronization Instance tutorial complete

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.