hexojs / hexo-deployer-rsync

Rsync deployer plugin for Hexo.
MIT License
47 stars 30 forks source link

`rsync` using `-a` parameter may cause error #109

Open xiaosiyu0603 opened 1 year ago

xiaosiyu0603 commented 1 year ago

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]