After reading these replies going back 2 years, none of it works :-)
I've got a straightforward rsync to a NAS. It works perfectly when I run it on the command line, so I know the code is sound.
I've given all of these full disk access: rsync, sh, ssh, ssh-keygen-wrapper,bash, zsh, osascript, launchd, and the backup script itself.
I can only think there's another program running that doesn't have access. I've noticed that it fails at command "rsync opendir /localfolder... operation not permitted"
So I've been looking for a command called opendir; I can't find one - I guess it's a function built in to the rsync command.
Is it possible that Apple security is causing a problem I can't solve, by locking down "opendir", a command I can't find?
Does anyone have any other ideas? I'm currently running the 12.5.1 version of Monterrey.
Thanks!