diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-06-27 21:25:37 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-06-27 21:25:37 +0200 |
| commit | cce7d2d258292c283d64ce8da14a6d1e366b564d (patch) | |
| tree | fe9de437636098066c6bf160d5787b6b35659835 /README.md | |
| parent | a22ff185f9836023817f9d4f8df3157b948f8cf2 (diff) | |
| download | ansible-role-borgbackup-cce7d2d258292c283d64ce8da14a6d1e366b564d.tar.gz ansible-role-borgbackup-cce7d2d258292c283d64ce8da14a6d1e366b564d.zip | |
Add support for non-root backup clients
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -53,7 +53,23 @@ ansible-galaxy role install git+https://github.com/kliwniloc/ansible-role-borgba ## Role Variables -For more details, see: [`defaults/main.yml`](defaults/main.yml) +Some configuration options were left out of this high level overview. For the +full set of configuration options, see: [`defaults/main.yml`](defaults/main.yml) + +### Backup User Configuration + +By default, the role runs all client-side operations as `root`. To use a +non-root user, set `borg_client_user`: + +```yaml +borg_client_user: backup +``` + +The user must exist before running the role; it will not be created +automatically. Ensure the user can read all directories specified in +`borg_included_dirs`, or backups will fail at runtime. + +### Server Configuration You need to specify your Borg hostname (as defined in your Ansible inventory) as well as the public SSH key from that Borg SSH server. |