Rsync: failed to set permissions on

How to fix failed to set permissions on error from Rsync.

The "failed to set permissions on" error appears when changing the permissions is not allowed.

Check user permissions

Check that the user executing the Rsync command has correct permissions granted.

Ignore Rsync warnings

You can choose to ignore Rsync warnings by using the --no-perms and -o options to avoid setting permissions and modifications times on transferred files and directories:

$ rsync -avz --no-o --no-g --no-perms SOURCE_FOLDER DESTINATION_FOLDER

Avoid using -a (archive) option.