We use rsync to backup a user's documents to a network share and I seem to have run into an issue having it run at login.
I can run the script below, at the terminal prompt, without root access, and the rync command will run without error and I will get a successful backup on the network share:
rsync -rltgoD --progress --no-p --delete --cvs-exclude ~/Documents /Volumes/dfs/"$adOU"/"$loggedInUser"/"$computerName"
When I add that command to be run by Enterprise Connect after a successful login, it fails with the following error message:
building file list ...
0 files...
rsync: opendir "/Users/<USERNAME>/Documents" failed: Operation not permitted (1)
1 file to consider
IO error encountered -- skipping file deletion
Currently running 10.15.1
Thank you for any advice.