Page 1 of 1

rsync: failed to set permissions

Posted: Tue Dec 22, 2020 8:45 pm
by mister_v
Hi,

I got the following error with my rsync script:

Code: Select all

rsync: [receiver]  failed to set permissions on "/work/file.txt" (in backup): Operation not supported (95)
I don't know why ?

Re: rsync: failed to set permissions

Posted: Thu Dec 24, 2020 12:34 pm
by Chris
You get this error when the other side ( server ) can't change the file permission.
Perhaps the file system doesn't support it.
Or the user that runs the rsync-daemon on the server doesn't have the rights to change the permissions.

You can suppress the error-message by adding --no-perms to the rsync-command..

Code: Select all

rsync -ahv --no-perms target/ destination/
or you separately per owner and group

Code: Select all

rsync -ahv --no-o --no-g target/ destination/