[rsync]rsync设定及错误处理
2014-03-21 18:10
288 查看
server端设置
修改/etc/default/rsync
RSYNC_ENABLE=true RSYNC_OPTS='--address=10.192.0.5' RSYNC_NICE=''
修改/etc/rsyncd.conf
# sample rsyncd.conf configuration file # GLOBAL OPTIONS #motd file=/etc/motd
uid = nobody
gid = nogroup
use chroot = no
max connections = 10
strict modes = yes log file=/var/log/rsyncd.log
# for pid file, do not use /var/run/rsync.pid if
# you are going to run rsync out of the init.d script.
# pid file=/var/run/rsyncd.pid
#syslog facility=daemon
#socket options= # MODULE OPTIONS [cashare] comment = CA-Share
path = /home/cashare
uid = root
gid = root
read only = yes
hosts allow = 10.192.0.0/24
list = false
ignore erros
auth users = backup
secrets file = /etc/rsync.pass
transfer logging = yes
log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes. 基本上配置还是比较好理解的了。 创建/etc/rsync.pass chmod 600 /etc/rsync.pass echo ‘backup:backup’ > /etc/rsync.pass 客户端配置:
命令格式: /usr/bin/rsync -vzrtopg --delete --progress backup@10.192.0.5::cashare /backup-10.192.0.5 --password-file=/etc/rsync.pass 写入到crontab cat /etc/rsync.pass backup 犯得错误:
rsync: failed to connect to 192.168.1.106: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6] 应该和下面原因相同 root@InnerServer3:/etc# rsync -vzrtopg --delete --progress gitlab@10.192.0.5:gitlab /backup-10.192.0.5/
gitlab@10.192.0.5's password:
Permission denied, please try again ip之后应该是::而不是:,疏忽啊 @ERROR: auth failed on module gitlab
rsync error: error starting client-server protocol (code 5) at main.c(1534) [Receiver=3.0.8] 在client的密码文件中,只保存密码。
相关文章推荐
- 网站错误处理、运行时间、文件大小、接受和发送编码设定
- magento 关于paypal支付后台设定以及错误的处理
- libc-bin (2.23-0ubuntu9) 的触发器 ... 在处理时有错误发生: rsync E: Sub-process /usr/bin/dpkg returned an error c
- magento 关于paypal支付后台设定以及错误的处理
- rsync错误处理-failed to connect to 192.168.xxx.xxx: Connection refused (111)
- Rsync同步错误处理
- PHP设定错误和异常处理三函数
- rsync错误处理-Connection reset by peer(104)
- 《从零开始学Swift》学习笔记(Day 53)——do-try-catch错误处理模式
- sonar常见错误以及处理方案
- Selenium在添加cookie时“Can only set Cookies for the current domain”错误处理
- 类型初始值设定项引发异常处理办法
- 使用checked关键字处理“溢出”错误
- Flex 页面空白或Error #2032: 流错误处理办法
- zhgl 错误 其他信息: “Oracle.DataAccess.Client.OracleConnection”的类型初始值设定项引发异常。
- java.lang.OutOfMemoryError: Java heap space错误及处理办法(收集整理、转)
- 通用错误处理
- Mongodb 参数说明及常见错误处理
- linux下write操作原理、错误原因及处理方法
- PHP实现抓取HTTPS内容的方法和错误处理