Skip to content

rsync using -a parameter may cause error #109

@xiaosiyu0603

Description

@xiaosiyu0603

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions