The target folder to deploy on server is on NFS, so --omit-dir-times argument is needed (reference); the owner of target folder is not me, which means I'm not allowed to change its owner, so --owner/-o argument can not be used, while -a includes -rlptgoD and causing error. Files can be synchronized correctly.
rsync: failed to set times on "/home/xxx/www/blog-test/.": Operation not permitted (1)
rsync: failed to set permissions on "/home/xxx/www/blog-test/.": Operation not permitted (1)
...
Error: rsync: failed to set times on "/home/xxx/www/blog-test/.": Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
The target folder to deploy on server is on NFS, so
--omit-dir-times
argument is needed (reference); the owner of target folder is not me, which means I'm not allowed to change its owner, so--owner
/-o
argument can not be used, while-a
includes-rlptgoD
and causing error. Files can be synchronized correctly.