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).
The text was updated successfully, but these errors were encountered: