chown doesn't work
pyronaur opened this issue · 3 comments
Got this error:
[14:47:09] gulp-rsync: zsh:1: no matches found: --usermap=*:www-data --groupmap=*:www-data
[14:47:09] gulp-rsync: [14:47:09] gulp-rsync: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
[14:47:09] gulp-rsync: [14:47:09] gulp-rsync: rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
From:
Mac OS X Sierra, rsync 3.1.2
To:
Ubuntu 16.04, rsync 3.1.0
Tried config like this
chown: 'www-data:www-data',
and this:
chown: '"www-data:www-data"',
I'm syncing as root, so I'm fairly certain I have permissions. No idea what do do about this.
I found the answer, it's an rsync
bug fixed in 3.2.4
or 3.2.5
:
I would post this also on ansible/ansible#64971 but unfortunately they use the software engineering anti-pattern of locking issues so they likely will never learn of the answer 😥
Usually adding -s
can solve this issue, from rsync manpage:
If you specify "--chown=foo:bar", this is exactly the same as specifying "--usermap=:foo --groupmap=:bar", only easier. If your shell complains about the wildcards, use --protect-args (-s).