Windows rsync server backup configuration instance

Source: Internet
Author: User

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.

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.