I am currently creating automated backups of the Yunohost server on my Synology Diskstation using the root user and ssh/rsync.
Now, for security reasons, I would like to use the backup_user user instead of root. This user is assigned to the admins group in Yunohost. The ssh connection is working, but this user needs sudo to create backups (yunohost backup create). How can I give the user backup_user the necessary rights without having to store a password for sudo in an automated script?
Thanks for helping
Papillone