COMMAND:RSYNC-VZRTOPG--progress--delete--exclude=*.txt rsync@192.168.1.9::test/cygdrive/f/a
server-side rsyncd.conf instance:
Server-side software download Address http://www.jb51.net/softs/16780.html
Use chroot = no
#strict modes = False
Hosts allow = *
Log file = Rsyncd.log
PID file = Rsyncd.pid
Uid=administrator
Gid=administrator
Max Connections=4
# Module Definitions
# Remember Cygwin naming conventions:c:\work becomes/cygwin/c/work
#
[Test]
Path =/cygdrive/j/byq/pdf
Ignore errors
Read Only = yes
Auth Users=rsync
Transfer logging = yes
Secrets file =/cygdrive/c/rsync.pas
Server-side C:\rsync.pas instance:
rsync:12345
Of course, you can also create a new Rsync.pas in the current directory, but the secrets file = Rsync.pas above
Client Software http://www.jb51.net/softs/16779.html
The client uses the backup command:
RSYNC-VZRTOPG--progress--delete--exclude=*.tmp rsync@192.168.1.9::test/cygdrive/f/a
Attention should be paid to the--delete option, depending on your goal
Client BAT File instance:
Copy Code code as follows:
@echo off
Title Fileserver Mirror Backup ...
RSYNC-VZRTOPG--progress--delete--exclude=*.tmp rsync@192.168.1.9::test/cygdrive/f/a
The client command can be written as bat, batch, and then added to the system's scheduled task execution at the last backup.