rsync:mkstemp failed:Permission denied
2013-09-25 12:25
218 查看
问题:10.0.0.181
原因一:
/etc/rsyncd.conf配置文件中有错误,如uid = rsync写成了d = rsync.请仔细检查
/etc/rsyncd.conf配置模板:
[root@test181 ~]# rsync -azv bb.tar rsync_backup@10.0.0.182::ggp --password-file=/etc/rsync.password sending incremental file list bb.tar rsync: mkstemp "/.bb.tar.CXMF7s" (in ggp) failed: Permission denied (13) sent 227 bytes received 27 bytes 508.00 bytes/sec total size is 10240 speedup is 40.31 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]ji解决:10.0.0.182:
原因一:
/etc/rsyncd.conf配置文件中有错误,如uid = rsync写成了d = rsync.请仔细检查
/etc/rsyncd.conf配置模板:
[root@test181 ~]# cat /etc/rsyncd.conf uid = rsync gid = rsync max connections = 200 timeout = 300 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/ryncd.log [ggp] path = /ggp/ ingnore errors read only = false list = false hosts allow = 10.0.0.0/24 hosts deny = 0.0.0.0/32 auth users = rsync_backup secrets file = /etc/rsync.password原因二:/ggp的权限不正确。
[root@ggp ~]# chown -R rsync.rsync /ggp10.0.0.181再次执行成功
[root@test181 ~]# rsync -azv bb.tar rsync_backup@10.0.0.182::ggp --password-file=/etc/rsync.password sending incremental file list bb.tar sent 227 bytes received 27 bytes 508.00 bytes/sec total size is 10240 speedup is 40.31
相关文章推荐
- 文件传输脚本(expect+rsync)
- rsync+inotify实时同步文件
- rsync 同步备份工具
- 多学一点(十四)——服务器间通过rsync和inotify-tools动态同步数据
- LINUX服务器之间用Rsync同步数据
- Shell脚本:使用rsync备份文件/目录
- CentOS6.4_64位下搭建Rsync+Inotify实现实时同步
- linux下一个rsync工具和配置
- 利用inotify+rsync实现linux文件批量更新
- rsync+inotify实现文件实时同步
- inotify+rsync
- rsync 文件同步
- linux下rsync增量同步方法
- centos6.5 rsync+inotify实现服务器之间文件实时同步
- rsync 的配置
- rsync+sersync2多个web网站同步
- rsync安装
- rsync+inotify-tools实现文件的实时同步
- rsync: mkstemp ".test1.sh.ox5lBz" (in conf) failed: Permission denied (13)
- Shell脚本:使用rsync备份文件/目录