最新消息:三苏博客专业为广大站长朋友提供网站源码

rsync failed to set times on

Linux 三苏 144浏览 0评论
rsync: failed to set times on “.” (in bak): Operation not permitted (1)
sending incremental file list
./
rsync: failed to set times on “.” (in bak): Operation not permitted (1)
test.tt
4 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/2)
rsync: mkstemp “.test.tt.bo17HS” (in bak) failed: Permission denied (13)
sent 92 bytes received 30 bytes 244.00 bytes/sec
total size is 4 speedup is 0.03
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
这个问题就是,因为 /etc/rsync.conf 文件内,你指定的uid 、 gid 的问题, 这样,你同步文件要写的目录 ,他的属主和属组 都要是/etc/rsync.conf 文件内指定的uid 、 gid ,

这样就不会 rsync: failed to set times on 之类的错误了 !
(1)修改前,rsync 推送文件到目标服务器出错 :

(2)去目标服务器查看 /etc/rsync.conf 文件,看uid和gid分别是什么
(3)然后根据配置文件,把目标服务器的目标目录,chown 目录的属主和属组

转载请注明:三苏博客 » rsync failed to set times on

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址