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:
- use chroot = false
- strict modes = false
- hosts allow = *
- log file = c:/rsyncd.log
- [BackupArea]
- path = d:/backup
- 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.