hermanbanken/ldap-control — Issue #1: Permissions on backups
Author: hermanbanken
Created: 2011-12-16 21:59:01+00:00
State: open

The website runs as the default apache user and when doing a backup of user folders we need to run the rsync commands as root or as a privileged user. My question is how to do this the nicest way. My guesses are:

- Create simple **deamon** that runs as root and backup's folder -arg1 to -arg2 minding the old backup in -arg3.
- Run rsync as the logged in user by **remembering the users pass** at login. (Problem: running **ps** will reveal password).
- Create special rsync user (Problem: rsync user can read **everything**).