Rsync - Permission Denied Errors

mike-h30 wrote on Tuesday, August 04, 2009:

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?

rsync: opendir "/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/%%-15" failed: Permission denied (13)                                
rsync: opendir "/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/%%154" failed: Permission denied (13)                                
rsync: opendir "/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/%%164" failed: Permission denied (13)                                

Thanks,

Mike

mike-h30 wrote on Tuesday, August 04, 2009:

Sorry, I meant to post on "Help" forum.

drbowen wrote on Tuesday, August 04, 2009:

Dear Mike,

What process owns the compiled directory?

Which process owns your rsync?

This info in the calender.  Are you shutting down the MySQL engine to do your rsync?

Sam Bowen, MD

mike-h30 wrote on Tuesday, August 04, 2009:

Dr. Bowen,

The Compiled directory has the following ownership.

user:wwrun
group:www

I am not sure about the rsync ownership.  It was installed by default.  I ran it as root though.

No I did not shut down MySQL when I ran rsync.

I followed this tutorial to mirror a web site.

-Mike

cfapress wrote on Tuesday, August 04, 2009:

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.

Jason

mike-h30 wrote on Tuesday, August 04, 2009:

Thanks Jason.  I just wanted to double check about the "compiled" directory. 

-Mike