I'm running a command-line backup tool (duplicity) as a cron job. But in Mojave, there is a new user data protection feature called "Full Disk Access" (part of the TCC access control framework) that prevents duplicity from accessing certain user-owned files.
How do I whitelist this command-line tool? Since it runs as a cron job, adding Terminal.app to the whitelist won't work. I tried adding the duplicity binary to the whitelist in System Preferences > Security & Privacy > Full Disk Access
, but that changed nothing. I also tried running duplicity manually to see if anything would show up in that whitelist, but nothing did.
Edit: the answer to this question is not a solution. I clearly explained that I have already tried whitelisting to no avail.
/usr/sbin/cron
? – user7886229 Nov 07 '18 at 18:57cron
isn't "attached" to Terminal the way a standalone command would be, so allowing Terminal won't have any effect. Trylaunchd
ascron
has been deprecated. – Allan Nov 07 '18 at 22:16launchd
service instead ofcron
and running in the same issue. It's unclear how to whitelist a specific launchd service into Full Disk Access. – tmm1 Nov 13 '18 at 01:14cron
to access files, like~/Pictures/
, then you need to addcron
to System Preferences > Security & Privacy > Full Disk Access. – Craig Francis Dec 19 '18 at 12:27