Windows rsync Server Backup configuration instance _win server

Source: Internet
Author: User
Tags rsync
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.
Related Article

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.