aboutsummaryrefslogtreecommitdiffstats
path: root/defaults
Commit message (Collapse)AuthorAgeFilesLines
* Add state: absent variableColin Wilk2026-07-021-0/+15
| | | | Allow removing configuration for repositories.
* Support custom arguments for borg createColin Wilk2026-06-291-0/+8
|
* Parametrize server-side borg userColin Wilk2026-06-281-0/+11
| | | | Adds option to choose a non-default borg backup user on the server.
* Add option to disable decryption key exportColin Wilk2026-06-281-0/+1
|
* feat: add storage quota supportColin Wilk2026-06-271-1/+11
| | | | | | | | | Add borg_storage_quota variable to limit repository storage on the borg server via --storage-quota option in authorized_keys. When not using borg_ssh_key_per_repo, all repos for a host must share the same quota setting (similar to --append-only). Per-repo SSH keys enable independent quotas per repository.
* feat: add per-repo SSH key supportColin Wilk2026-06-271-0/+6
| | | | | | | | | Add borg_ssh_key_per_repo option to generate unique SSH keypairs per (server, repo) combination. When enabled, each repository gets its own authorized_keys entry, enabling: - Independent --append-only settings per repository - Per-repo storage quotas
* Add support for non-root backup clientsColin Wilk2026-06-271-0/+19
|
* test: add tests for systemd exist success statusColin Wilk2026-06-231-9/+11
|
* Add option to configure SuccessExitStatusv1.0.5Colin Wilk2026-06-221-0/+18
| | | | | | | | Useful for letting systemd services not get marked as failed state when borg throws warnings. Keeping default to only accept exit code 0 as a successful state. Related: PR #2 https://github.com/kliwniloc/ansible-role-borgbackup/pull/2
* Migrate role from cron to systemdColin Wilk2023-11-041-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Systemd gives us the ability to monitor backup job status using existing monitoring solutions (node exporter) and allows us greater control over the scheduling of the backup jobs. This introduces a breaking change that requires users to manually remove the old repositories from the clients and redeploying them with the role. You will have to remove the Cron job that was created by the Ansible script, everything else will be overwritten with a run from the newer version. - name: Remove backup cron jobs ansible.builtin.cron: name: BORG (Application level backups) state: absent become: true - name: Remove env for backup cron job ansible.builtin.cron: name: BORG_PASSPHRASE env: true state: absent become: true Performing manual migrations on the Borg server is not required. We now additionally support multiple Borg repositories per client host using the `borg_backup_argument` variable. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add YAMLLint rulesColin Wilk2023-05-241-2/+2
| | | | | | | | | | | | | | | Fix linting errors that came up with the new rules Main changes: * Enforce YAML document start headers * Enforce spacing with commas, colons and hyphens * Enforce indentation * Enforce use of quotes only then required * Enforce use of single quotes over double quotes * Enforce use of true/false over yes/no and derivatives * [..] Other minor rules that were already followed Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* initColin Wilk2023-05-241-0/+125
Signed-off-by: Colin Wilk <colin.wilk@tum.de>