How can I restore deleted system cache in `/BuildRoot/Library/Caches`? I cleaned disk space and deleted some caches. Seems like some of the stuff in the cache folder has been used by the Mac OS (Sierra).
The Mac OS is working, the only thing is not working (I noticed so far) is the rsync, a command line utility app. When I try to run rsync I see the following error:
rsync: Failed to exec xclude: No such file or directory (2)
rsync error: error in IPC code (code 14) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/pipe.c(86) [sender=2.6.9]

How can I fix the error and restore the content of the cache folder? (I don't have Time Machine).
P.S.
If that matter, I believe the cache I deleted had different path, it didn't something like /Library/Caches and I don't have the /BuildRoot dir at all on my machine.
Let’s assume your Mac can boot and run Safari.
Go here, and download Sierra and reinstall on top - that drops a functioning system on top of your accounts, files, apps.

https://support.apple.com/en-us/HT211683

Assuming that didn’t work, we would need to understand the rsync command in detail and perhaps troubleshoot that, but since rsync comes with macOS - you likely have that from the system.