ZZW原创_rsync同步时由于注释问题引起的@ERROR: chdir failed
1、需求:A机器同步文件到B机器
2、问题: A机器执行如下命令:
[root@sv0379 rsync]# rsync -vzrtopg --password-file=/usr/local/rsync/rsync.passwd /opt/aspire/product/pcc_cs21/LOCAL_PccFTP/PCC_666_local/components_yml/localAbsoluteTempPath/ backup@10.12.8.245::components_localAbsoluteTempPath
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]
3、B机器rsyncd.conf 文件配置
[root@linux245 rsync]# vi rsyncd.conf
uid = root
gid = root
use chroot = no
max connections = 4
strict modes = yes
hosts allow = 10.12.3.25 #可以空格,允许多个
port = 873
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[components_localAbsoluteTempPath]
path = /opt/aspire/product/pcc_sh21/LOCAL_PccFTP/PCC_666_local/components_yml/localAbsoluteTempPath #当前机器要同步到此的目录
#path = /usr/local/rsync
ignore errors = yes
read only = false
list = false
auth users = backup
uid = pcc_sh21
gid = pcc_sh21
secrets file = /usr/local/rsync/rsyncd.passwd
4、问题解决
将rsyncd.conf 文件中的 #当前机器要同步到此的目录 这个注释删除掉,问题解决
最新文章
- Android消息传递之组件间传递消息
- SVN 提交失败: permission denied - txn-current-lock
- jquery音乐播放器(歌词滚动版)
- JAVA常见错误处理方法 和 JVM内存结构
- meta之renderer
- apple个人开发者证书无线发布app的实现(转)
- OpenJudge计算概论-分配病房
- 虚拟机VMware 9安装苹果MAC OSX 10.8图文教程
- hive中sql解析出对应表和字段的调查
- $(this).val()与this.value的区别?text()与html()的区别?
- 巧妙实现缺角radiogroup控制多个fragment切换和滑动
- JavaScript :memory leak [转]
- tp框架---验证码详解
- Android 手势检测实战 打造支持缩放平移的图片预览效果(下)
- 写个.net开发者的Linux迁移指南
- 2019ccpc-HN省赛-A/C/F/I
- 微软SSAS 错误 Internal error: Invalid enumeration value. Please call customer support! 不是此元素的有效值。
- ASP.NET MVC4在部署IIS后,运行时显示的是整个Web的目录列表
- ajax 调用 java webapi 多个参数(一)
- am335x system upgrade uboot ethernet(二)
热门文章
- 关于maven-resources-plugin配置的隐藏的坑
- python框架之Django(6)-查询优化之select_related&;prefetch_related
- 自动微分(AD)学习笔记
- fiddler学习总结--fiddler抓包篡改数据请求
- Eclipse启动报错An internal error occurred during: ";Initializing Java Tooling";
- [openjudge-贪心]删数问题
- ArrayList 除重
- 分布式系统Paxos算法
- Git命令git update-index --assume-unchanged,忽略不想提交的文件(忽略跟踪)
- Windows安装MySQL5.7.23 zip包