Windows Server synchronizes rsync, incremental backup

Source: Internet
Author: User

These days to synchronize two servers, are Windows Server, I took my own computer to test Ah, after all, the server site is still in use, not blind, after two days of bitter often tried, and finally succeeded, and now share to everyone, to the next.

Talk about the computer configuration and the use of the software bar:

Service side:

Windows7 System 64bit 4G memory

IP address is 192.168.1.13

Cwrsyncserver_4.1.0_installer.exe

Client:

Windows7 System 64bit 4G memory

IP address is 192.168.1.56

Cwrsync_4.0.3_installer.exe

All right, let's talk about the software. Server configuration:

First double-click Cwrsyncserver_4.1.0_installer.exe this thing, click Next, to select the path when I chose the D:\rsync\server

Then click Next, one until

(Fig. 1)

This step of the time, haha, pay attention!!!! Your user name and password must be remembered, otherwise you can not open this service and file synchronization, I set the user name is AAA, the password is sun123456

Click Next, and the installation is complete.

After entering your installed directory, my is D:\rsync\server into the inside of the ICW folder, D:\rsync\server\ICW,

(Figure II)

, open the Rsyncd.conf folder with Notepad, then empty the contents and fill in

Use Chroot = False
UID = 0
GID = 0
Strict modes = False
Log file = Rsyncd.log
Port = 52326
[WWW]
Path =/cygdrive/c/www
Read Only = False
Transfer logging = yes
Auth users = AAA
Secrets file = Etc/testuser.pas
Hosts allow = 192.168.1.56
Hosts Deny = 0.0.0.0/0

(I only use these parameters, other people can find on the internet, really can't find contact me)

Now we will explain the more important parameters:

Port = 52326 This is the server-side listener is 52326

[WWW] This is the definition of a module, the equivalent of a user, you can use this to restrict some of the permissions and the user can access the folder, this can have multiple, and then called him the module name (I call it, unofficial)

(I am referring to http://bbs.nanjimao.com/thread-915-1-1.html this to do, you can also see).

Path =/cygdrive/c/www This is the folder to be backed up is the C-drive, www.

Auth users = AAA This fills in the user name that you fill in figure one when you install Cwrsyncserver_4.1.0_installer

Secrets File = Etc/testuser.pas This is the path where the password files are located, which will be described in detail later

The hosts allow = 192.168.1.56 allows access to the IP address of this server, my client is 192.168.1.56 I'm going to fill this out, modify it as needed
Hosts deny = 0.0.0.0/0 this thing prevents access to the address.

Okay, finish this. A very important configuration, is the password file, in Figure two, we must not pay attention to a folder, that is, etc folder, good, is he, into the D:\rsync\server\ICW\etc this folder, Create a new file in a folder Testuser.pas Remember, this name should match the name in the secrets file above.

Inside the content format is the user name: password

My content is: aaa:sun123456

Okay, this is the end of the server, right, there is a place where you want to set up a folder you want to backup Ah, OK, in C set up a WWW folder, inside casually throw something, then began->cmd->services.msc

Find your Service

Yes, this is the red-framed service,

Right-click Properties

Select this account, user name fill in your then install cwrsyncserver_4.1.0_installer user name, password is you set password, my is AAA sun123456

Click OK, right after this service, click Start ..., then shut down your firewall, the server side is like this.

Okay, let's talk about the client now.

After the client double-clicks the Cwrsync_4.0.3_installer, and then the next step until the completion, remember to remember this installation path I installed the path is the default path C:\Program Files (x86) \cwrsync

After then set up a DataBackup folder under the C disk and then set up a www folder in DataBackup, this is the file used to save the backup

After opening the client's command line, switch to the bin directory under that installation directory: CD C:\Program Files (x86) \cwrsync\bin after the command line input

RSYNC.EXE-VZRTOPG--progress--delete [email protected]::www/cygdrive/c/databackup/www--port=52326

Let me explain this.

RSYNC.EXE-VZRTOPG--progress--delete (the user name you entered in Tuyi) @ (IP address of the server)::(rsyncd.conf configured module name)/cygdrive/(just the folder you set up in C) port= (server-side listening port)

OK, so you can almost sync, about timing synchronization, will give, welcome to study together. May report some strange mistake, do not worry first Baidu, may have your answer, no words can leave a message or add me qq:212966054

Of those two software:

Windows Server synchronizes rsync, incremental backup

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.