Ok, so I'm usually on stackoverflow, and I'm admittedly a little out of my element when it comes to more sys admin stuff.
I had an rsync script I wrote myself that functioned fine before I updated to catalina. Basically I wrote a bash script that would copy whitelisted hard drives to a NAS in the back of my building.
Since updating to Catalina
I get the following error rsync: failed to open log-file nas-log: Read-only file system (30)
So it sounds like a permissions error, but there are a few things I don't understand. The script is running from launchcontrol which is essentially launchctl? It's considered a 'global daemon' so I don't really know if its my user running this script, or root trying, and I don't know how to even see.
In order to get this script to work again, how do I fix the permissions to get avoid this error. I've already given Fill Disk Access to sh (as required in catalina's update)
And for reference here is what my bash script does
if [ -d /Volumes/Seville ]
then
echo "Detected Seville... Beginning Rsync"
rsync -az /Volumes/Seville rsync://[email protected]:873/rsync --log-file=nas-log --out-format="%t %f %b %n"
echo "Rsync Complete ...Mailing Logs For Details"
ruby /Users/$nasDir/Library/Scripts/mail.rb [email protected] Seville
rm nas-log
fi
...#more drives
So it basically creates a log, emails it to the user and then deletes that log in order to keep it fresh the next time the script runs. I'm fine with this, I don't need to store these logs anywhere long term. Thank you in advance and I appreciate any help!