Rsync server configuration

Source: Internet
Author: User
Server:
Ensure Rsync is installed.

Configure/etc/rsyncd. conf. Generally, Rsync is installed and does not automatically create rsyncd. conf. The configuration is as follows:

# Rsync configuration file
Secrets file =/etc/rsyncd. Secrets # name and location of the authenticated user name and password file
Motd file =/etc/rsyncd. motd # Welcome file, which can be edited by yourself
Read> List = Yes
Uid = root
Gid = root
Use chroot = No
Max connections = 5
Log File =/var/log/rsyncd. Log
PID file =/var/run/rsyncd. PID
Lock file =/var/run/rsync. Lock
# Remote Sync configuration module
[Testsync]
Comment = testsync directory
Path =/home/chijianqiang
Auth users = rsync

Generate Password File
Echo "rsync: Password">/etc/rsyncd. Secrets
Chmod 600/etc/rsyncd. Secrets

Start rsync
Rsync -- daemon

Synchronize files from the client
Rsync-vzrtopg -- Progress rsync@10.11.3.3: testsync/home/chjq
Rsync-vzrtopg -- delete -- Progress rsync@10.11.3.3: testsync/home/chjq

When the -- delete parameter is added, files in the original chjq directory are deleted to ensure the consistency between the client and the server file system. Use it with caution.

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.