Rsync error
See original GitHub issueError detail-
Error Info:
error code = 23
cmd ['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']
error message:rsync: send_files failed to open "/Library/LaunchDaemons/com.microsoft.teams.TeamsUpdaterDaemon.plist": Permission denied (13)
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(996) [sender=2.6.9]
Traceback-
File "/usr/local/bin/macprefs", line 73, in <module>
main()
File "/usr/local/bin/macprefs", line 69, in main
invoke_func(args)
File "/usr/local/bin/macprefs", line 39, in invoke_func
args.func()
File "/usr/local/bin/macprefs", line 17, in backup
startup_items.backup()
File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 10, in backup
backup_system_daemons_agents()
File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 35, in backup_system_daemons_agents
copy_dir(source, dest)
File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 31, in copy_dir
execute_shell(command)
File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 12, in execute_shell
cwd=cwd, stderr=STDOUT).strip().decode("utf-8")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']' returned non-zero exit status 23
System detail- macOS Catalina version 10.15.7
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Rsync error code 23 - How we sort it out? - Bobcares
The rsync error code 23 denotes partial transfer due to error. The error can be anything from typos in rsync command to permission...
Read more >Rsync Error 23: Can I tell which files were not transferred?
The reason is that the source drive has an error-ful NTFS and I don't have access to a Windows PC to repair the...
Read more >Comprehensive list of rsync error codes [closed]
The most common rsync errors and their codes? A link to a comprehensive rsync error code page? Most importantly, rsync (at least on...
Read more >Rsync exit codes - Lxadm.com
List of standard rsync exit codes. This is a list of rsync exit codes (rsync status codes / rsync error codes / rsync...
Read more >rsync errors out reproducibly on specific files ... - GitHub
rsync errors out reproducibly on specific files - caused by --compress ... returned -3 (224 bytes) rsync error: error in rsync protocol data...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello @sanimkhan 😃
I just encountered the same error and stumbled upon your issue while searching for a solution, which I found later:
Following that I just ticked “Terminal” in “Full Disk Access” under “System Preferences > Security & Privacy > Privacy”
Running
macprefs backup
afterwards performed successfully 🎉@sanimkhan Glad it helped 😃
I think your issue is that you ran it as
sudo
so only theroot
user can edit that folder.You can change this folder ownership with the
chown
command & change its permissions withchmod
.Then you can run
macprefs
again and it should work 🚀