Use Rsync in windows

Source: Internet
Author: User

Rsync is very simple and convenient to use. If used properly, the operation security can be enhanced. In addition, it can also be used as a security detection tool, without the support of any other software, you can complete the Integrity audit of the file system.

Rsync Step 1: Create an rsync directory in d:, decompress all the stuff in the two compressed files to this directory, and then enter the rsync directory.
Rsync Step 2: copy the cygwin support library to the system and copy the two DLL libraries to c: \ windows \ system32 (XP system)
Step 3: register a service called Rsync and start the service using anysrv)
D: \ rsync> instsrv Rsync "d: \ rsync \ srvany.exe"
Step 4 of Rsync: Modify the information of the registration table on the rsyncservice so that srvanycan be used to start the rsync service according to the specified quota.
1. Edit the rsync-param.reg file and change all the paths inside to d: \ rsync like this:
"AppDirectory" = "\" D :\\ rsync \""
"Application" = "\" D: \ rsync \ rsync.exe \""
"AppParameters" = "-- config = \" D: \ rsync \ rsyncd. conf \ "-- daemon -- no-detach"
2. Modify the registry in the dual-machine rsync-param.reg File
Step 5 of Rsync: add an rsyncd. conf file in d: \ rsync to configure the corresponding service configuration file. The content is as follows:
 

 
 
  1. use chroot = false 
  2. strict modes = false 
  3. hosts allow = *  
  4. log file = c:/rsyncd.log  
  5. [BackupArea]  
  6. path = d:/backup  
  7. read only = no 

Step 6 of Rsync: Start the Rsync service to go to system service management. You will find an Rsync service. First, check the service attributes as follows:
Properties-> log on and change to "Local SYSTEM account"
Then start the Rsync Service
Check port 873 for netstat-an. Check whether port 873 is enabled.
Step 7 of Rsync: test the rsync synchronization function
1. Create a test directory. The source directory is d: \ source. The backup directory is d: \ backup. The backup directory is empty. In the source directory, export some files.
2. Enter a cmd window, enter the d: \ rsync directory, and then execute:
Rsync-rv -- delete/cygdrive/d/source localhost: BackupArea
3. Check the backup file to see the synchronization effect.
4. modify or add/delete a file in source, and then execute the command in step 2 again to check the synchronization effect in backup.

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.