Environment
Service side: 192.168.88.31 windows2008r2
Client: 192.168.88.32 windows2008r2
Synchronize the contents of the Service folder C:/rsync to the client C:/rsync
First, the service-side configuration
① installing Cwrsyncserver_4.1.0_installer.exe on the service side
This step will generate Svccwrsync an account under the current system to start the Rsyncserver service
② Modifying a configuration file C:\Program files (x86) \icw\rsyncd.conf
③ Administration Tools--Start rsyncserver #启动服务后, port number is set above 52326
Second, the client configuration
① installing software on the client Cwrsync_4.1.0_installer.exe
② creating a batch file named Dnt_rsync.bat
@echo off set Rsync_home=c:\program Files (x86) \cwrsync\bincd%rsync_home%rsync-avzp--progress--delete rsync:// 192.168.88.31:52326/sellsa/cygdrive/c/rsync-avzp-a: parameter, equivalent to-rlptgod,-r is the recursive-L is a linked file, meaning to copy the linked file;-p means to keep the original permissions of the file;-T Keep the file original time;-G keep the original user group of the file;-O to keep the original owner of the file;-D is equivalent to block device files;-Z: Transfer-time compression;-P: transfer progress;-v verbose: Verbose mode output-u: is only synchronizing files that have been updated, so that files that are not updated are repeated Note the synchronization of the two machine clocks--progress: Show backup process--delete: Delete files that are not src in DST (this option will be deleted synchronously)
③ and then double-click to start it
④ Create scheduled tasks through scheduled tasks in Windows, perform timed synchronizations
Cwrsync file synchronization