Use Cwrsync client to sync files under Windows to Linux

Source: Internet
Author: User
Tags rsync

This does not describe the process of configuring the Rsync service for Linux server-side installations, and there is a need to find relevant tutorials on the Web.

1. Installing the Cwrsync Client
: http://itefix.no/cwrsync/
Download file Cwrsyncserver_4.1.0_installer.zip, unzip and double-click Cwrsyncserver_4.1.0_installer.exe installation, the installation process will create a Svccwrsync user by default

2. The installation is finished to the bin directory to execute
CD C:\Program Files (x86) \icw\bin
Rsync.exe-avz--progress--delete--port=8899/cygdrive/d/backup/database/[email protected]::backup/backup/

A simple description of the command:

--delete    # Ensure that the data on both sides is exactly the same
--port=8899 # 192.168.2.4 on the rsync service process port 
root # User performing data synchronization
192.168.2.4   # Rsync server-side address
backup   # rsync module name

3. Perform synchronization with Bat script
Write the above synchronization command as a bat script, and save it in the bin directory of the installation directory, named Backup_database.bat:
@echo off
Echo.
Echo starts syncing data, wait a minute ...
Echo.
CD C:\Program Files (x86) \icw\bin
Rsync.exe-avz--progress--port=8899/cygdrive/d/backup/database/[email protected]::backup/backup/< Passwd.txt
Echo.
echo Data Sync complete
Echo.

The above Passwd.txt file saves the rsync sync user root password, saved in C:\Program files (x86) \icw\bin, using the "< Passwd.txt" method to avoid the need to manually enter the password this annoying problem

4. Set scheduled Task timing synchronization
Add a batch script to a Windows Task Scheduler
Start-Settings-Control Panel-Task Scheduler
Open the Add task schedule, Next
Browse, select Open Backup_database.bat in C:\Program Files (x86) \icw\bin directory
Set to run once per day
Enter the login password for the Windows system administrator, next
Complete!

Use Cwrsync client to sync files under Windows to Linux

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.