I am experimenting with using rsync to mirror my web root via SSH remotely. My goal is to have a mirrored copy of openemr at a remote location in the event of a system failure on site. I encountered a few "Permission denied" errors. Are these critical directories that I need to back up? Why is rsync denied access to these directories? What permissions need to be given in order to back up these directories?
The ‘compiled’ directory isn’t critical. The files in there are changed at run-time and used by the PHP Smarty system. You shouldn’t worry that they are not rsync’d to the other server.