I will be setting rsync between two webserver. I am aiming to have backup of data from my primary server on the secoundary in case if primary server crashes. My question relates to setting up on primary server a user account for rsync purposes.
For obvious reasons I don't want to use my "root" user account here. Therefore I am aiming at setting up another account which will be used only for rsync purposes. As I understand this user will need read permissions to all files that I will need to transfer (apache configuration, user linux files, www-data).
How to best set up such permissions? Should I grant rsync user root privileges or is there any more secure way to create user for such backup?