Command: rsync-vzrtopg -- progress -- delete -- exclude = *. txt rsync@192.168.1.9: test/cygdrive/f/
Server-side rsyncd. conf instance:
Software http://www.jb51.net/softs/16780.html on server side
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 c: \ rsync. pas instance:
Rsync: 12345
Of course, you can also create an rsync. pas file in the current directory, but the above secrets file = rsync. pas is enough.
Client 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/
Pay attention to the -- delete option during backup, depending on the target
Client bat file instance:Copy codeThe Code is as follows: @ echo off
Title fileserver mirror backup ......
Rsync-vzrtopg -- progress -- delete -- exclude = *. tmp rsync@192.168.1.9: test/cygdrive/f/
During the final backup, the client command can be written as bat, batch processing, and then added to the system for scheduled task execution.