borgbase / ansible-role-borgbackup

Ansible role to set up Borg and Borgmatic
MIT License
221 stars 98 forks source link

Non root-user cron job #137

Open egdoc opened 12 months ago

egdoc commented 12 months ago

Hello,

I took a look at the role, but there is a thing I don't get. When the borg_user is not root, it is created and a sudoers rule is added to let it run borgmatic and borg commands without password. In the cron job however, "sudo" is not used as part of the command. Wouldn't this fail to be executed?