Skip to content

Instantly share code, notes, and snippets.

@harmancode
Last active January 13, 2023 22:37
Show Gist options
  • Save harmancode/84c06855907975903583f79dcc67440a to your computer and use it in GitHub Desktop.
Save harmancode/84c06855907975903583f79dcc67440a to your computer and use it in GitHub Desktop.
How to fix opendir operation not permitted error from rsync on macOS Catalina
## How to fix opendir operation not permitted error from rsync on macOS Catalina
by Ertugrul Harman (twitter.com/harmancode - github.com/harmancode)
27 Dec 2020
I was getting opendir operation not permitted error from rsync on macOS Catalina.
The command I was using: rsync -vaE --progress /Volumes/SourceName /Volumes/DestinationName
Source: https://apple.stackexchange.com/a/117469/65292
I have fixed this error by giving Full Disk Access to Terminal and to /usr/bin/rsync. Tip: You can use CMD + Shift + G to choose the folder of rsync in System Preferences - Security & Privacy.
Extra sources:
https://apple.stackexchange.com/questions/224747/using-rsync-to-backup
https://stackoverflow.com/questions/30671292/running-rsync-as-root-operations-not-permitted
https://www.haykranen.nl/2008/05/05/rsync/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment