Configure the rsync service in ubuntu

Source: Internet
Author: User
Configure the rsync service in ubuntu. create/etc/rsyncd. conf content: motdfile/etc/rsyncd. motdpidfile/var/run/rsyncd. pidlockfile/var/run/rsyncd. locklogfile/var/log/rsyncd. l configure the rsync service in ubuntu 1. create/etc/rsyncd. conf content: motd file =/etc/rsyncd. motd pid file =/var/run/rsyncd. pid lock file =/var/run/rsyncd. lock log file =/var/log/rsyncd. log [workspace] path =/home/username/workspace comment = Test uid = username gid = username read on Ly = false auth users = username secrets file =/etc/rsyncd. scrt transfer logging = yes note: in actual use, username must be a ubuntu user 2. create/etc/rsyncd. scrt password file username: whatever_password_you_want 3. added/etc/rsyncd. motd Welcome word file Welcome to my rsync server! 4. restart the rsyncd service/etc/init. d/rsync restart 5. client synchronization command rsync-vr/home/username/test username @ ip: to install RSYNC in UBUNTU, perform the following steps: $ sudo apt-get install rsync xinetd [edit] Configuration 1. edit/etc/default/rsync and start rsync as the xinetd daemon $ sudo vim/etc/default/rsync RSYNC_ENABLE = inetd2. create/etc/xinetd. d/rsync use xinetd to start rsync. $ sudo vim/etc/xinetd. d/rsync service rsync {disable = no socket_type = stream wait = no us Er = root server =/usr/bin/rsync server_args = -- daemon log_on_failure + = USERID} 3. create/etc/rsyncd. configure rsync in conf. $ sudo vim/etc/rsyncd. conf max connections = 2 log file =/var/log/rsync. logs timeout = 300 [share] comment = Public Share path =/home/share read only = no list = yes uid = nobody gid = nogroup auth users = user secrets file =/etc/ rsyncd. secrets4. create/etc/rsyncd. secrets: configure the user name and password. $ Sudo vim/etc/rsyncd. secrets user: password4.a $ sudo chmod 600/etc/rsyncd. secrets5. start/restart xinetd $ sudo/etc/init. d/xinetd restart [edit] test and run the following command to check whether the rsync configuration is successful. $ Sudo rsync user@192.168.0.1: share Password: drwxr-xr-x 4096 2006/12/13 09:41:59. drwxr-xr-x 4096 2006/11/23 18:00:03 folders
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.