Rsync3.0.6 server and client establishment (preliminary preparations)

Source: Internet
Author: User
Rsync3.0.6 server and client (preliminary) server: (Environment: centos5.564-bit) 1. install: use yum-yinstallrsync to configure vi/etc/xinetd. d/rsync modify disable to no and not disable... rsync3.0.6 server and client (preliminary preparations) server: (Environment: centos5.5 64-bit) 1. install: use yum-y install rsync to configure vi/etc/xinetd. d/rsync: change disable to no. do not disable creating rsyncd under/etc. conf file uid = root () gid = root use chroot = no max connections = 7 pid file =/var/run/rsyncd. pid lock file =/var/run/rsync. lock log file =/var/log/r Syncd. log [backup] (module) path =/home/xx/(path for data synchronization) comment = xx.xx.com backup ignore errors (ignore error) read only = yes list = no auth users = rsyncuser (authorized user) secrets file =/home/xxx/rsync. ps hosts allow = * (specify the machines that are not allowed to connect to the rsync server. you can use the hosts allow definition method to define it. Hosts deny is not defined by default .) Hosts deny = 0.0.0.0/0 transfer logging = yes (use log) log format = "% a % f % l" (log file % h remote host name % a remote IP address % l file length characters % p process id % o operation for this rsync session type: "send" or "recv" % f file name % P module path % m module name % t current time % u authenticated user name (null when anonymous) % B actual number of bytes transmitted % c when a file is sent, this field records the file's verification code) create a password file: vi/home/xx/rsync. pd content: rsyncuser: xxx configure rsync automatic start: chkconfig rsync on chkconfig rsync -- list (view) start/etc/init. d/xinetd restart {start | stop | status | restar T | condrestart | reload} if xinetd is not available, install: yum-y install xinetd to start server:/usr/bin/rsync -- daemon: ps-ef | grep rsync (if correct) client: install rsync: yum-y install rsync to create a password:/home/xx/rsync. pd content: xxx run the synchronization command: rsync-avz -- password-file =/home/xx/rsync. pd rsyncuser@xxx.xx.xx.xx (ip): backup/home/xx/(put in local address) done, it takes several minutes to synchronize can be put into crontab to execute the client may be a problem: @ ERROR: auth failed on module xxx rsync error: error starting client-s Erver protocol (code 5) at main. c (1522) [handler er = 3.0.3] cause: the server needs to verify the user name and password for this module (xxx), but the client does not provide the correct user name and password. authentication fails. Provide the correct username and password to solve this problem.
 
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.