rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518)
2014-08-29 14:10
567 查看
在使用rsync同步主数据库到从数据库操作时,rsync报错
原因是有文件没有写的权限,导致备份数据库权限不够,两种解决办法:
1、将服务端rsyncd.conf配置文件的uid和gid分别修改成root,重载下,/etc/rc.d/init.d/xinetd reload,再次执行同步,同步成功
2、将需要同步的文件夹及下属文件赋予777权限(chmod -R 777 xxx),再次执行同步,同步成功
注意:如果使用第一种办法,那么在执行完同步后,为了安全,记得将uid和gid修改回来,或修改成nobody
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1518) [generator=3.0.9]
原因是有文件没有写的权限,导致备份数据库权限不够,两种解决办法:
1、将服务端rsyncd.conf配置文件的uid和gid分别修改成root,重载下,/etc/rc.d/init.d/xinetd reload,再次执行同步,同步成功
2、将需要同步的文件夹及下属文件赋予777权限(chmod -R 777 xxx),再次执行同步,同步成功
注意:如果使用第一种办法,那么在执行完同步后,为了安全,记得将uid和gid修改回来,或修改成nobody
相关文章推荐
- 解决方法:rsync error: some files could not be transferred (code 23) at main.c(702)
- rsync 同步错误 cwrsync rsync error rsync error: some files/attrs were not transferred 解决方法
- rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
- copypng emitted errors but did not return a nonzero exit code to错误
- 双台服务器rsync同步报错(code 5) at main.c(1503) [sender=3.0.6]
- the breakpoint will not currently be hit. No executale code is currently loaded at this location
- some nets were not able to be matched
- rsync error:error starting client-server protocol(code 5) at main.c(1503)
- Altuim designer 导入PCB,出现错误some nets were not able to be matched
- Showing Recent Errors Only clang: error: linker command failed with exit code 1 (use -v to see invo
- iOS常见问题之 copypng emitted errors but did not return a nonzero exit code to
- symbol dyld_stub_binding_helper not found linker command failed with exit code 1 (use -v to see invo
- 解决 ld: library not found for -xxx linker command failed with exit code 1 (use -v to see invocation)
- Eclipse run configurations:Error: Could not find or load main class Files
- DFS-R: Some files are not replicating, why? - DFSR不复制带有临时属性的文件
- Mac osx 安装PIL出现Some externally hosted files were ignored (use --allow-external PIL to allow).
- 爬虫的问题WARNING:root:Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- 在fedora14下安装vmware 7.1.4 build-385536 出现C header files matching your running kernel were not found. 错误
- Eclipes提示Some sites could not be found. See the error log for more detail