1.rsync服务权限阻止问题
1. 1.客户端报错
Permission denied (13)
1.2错误过程
[root@nfs01 lpc]# rsync -avz /lpc/ --exclude-from=/lpc/exclude_file rsync_backup@172.16.1.41::backup --password-
file=/etc/rsync.password
sending incremental file list
rsync: delete of stat xattr failed for "." (in backup): Permission denied (13)
sent 196 bytes received 105 bytes 602.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
解决方法
修改rsync服务端的/backup目录的所有者和所属组
[root@backup backup]# chown rsync.rsync /backup/
2.rsync服务备份目录层级创建功能
2.1 客户端报错
No such file or directory (2)
2.2 报错过程
[root@nfs01 lpc]# rsync -avz /lpc/ rsync_backup@172.16.1.41::backup/01/02 --password-file=/etc/rsync.password
sending incremental file list
rsync: mkdir "01/02" (in backup) failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(657) [Receiver=3.1.2]
2.3 解决方法
rsync服务备份目录创建目录功能–无法创建多级目录
创建目录的时候一级一级的去创建