Simple setting of rsync service

Source: Internet
Author: User
When setting the rsync service, you sometimes need to provide some game or website logs to other departments. at this time, you can obtain the logs by using ssh for their server accounts. but for security, you should use rsync to configure the module, in this way, apart from file transmission, there are other security issues. Large... when setting the rsync service, you sometimes need to provide some game or website logs to other departments. at this time, you can obtain the logs by using ssh for their server accounts. but for security, you should use rsync to configure the module, in this way, apart from file transmission, there are other security issues. Most linux systems use rsync, which is configured as follows:/etc/rsyncd. conf uid = rootgid = rootstrict modes = yesmax connections = 3600use chroot = nolog file =/var/log/rsyncd. log # defines the directory pid file =/var/run/rsyncd for some rsync files. pidlock file =/var/run/rsyncd. lock [datalog] # module name path =/home/datalog # directory to be synchronized ignore errors # ignore some errors read only = yes # only read permission auth users = datacenter # whether authentication is required user, do not fill in the following two lines. only anonymous secrets file =/etc/rsyncd is used by default. the format of the pass password file is user: Pass, such as cat/etc/rsyncd. pass datalog: datalog1234 note: The password file/etc/rsyncd. the pass permission must be set to 600 (chown root: root/etc/rsyncd. pass & chmod 600/etc/rsyncd. pass) after setting, enable the rsync service (The rsync service uses port 873 by default. Note that the firewall is enabled) /usr/bin/rsync -- daemon at this time, other servers can remotely synchronize the content of the set module through The rsync client. Rsync-artuz-R -- port = 873 datalog@192.168.1.1: datalog./enter the password as prompted. Alternatively, you can obtain a password file on the client. The permission can only be 600 for cat/etc/rsync. passdatalog1234, and then execute the command to directly synchronize the file. Rsync-artuz-R -- password-file =/etc/rsync. pass -- port = 873 datalog@113.107.161.10: datalog ./

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.