diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-06-27 21:20:35 +0000 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-06-27 21:28:48 +0000 |
| commit | 8b0175c70cbf3ed63c9a0e617c3f1e5332650ff6 (patch) | |
| tree | 4bf466fc21c201833d4b1b9612d8b2abeb82649c /defaults/main.yml | |
| parent | 8d872069976c5445c4396804ef3a0196f10eb14b (diff) | |
| download | ansible-role-borgbackup-8b0175c70cbf3ed63c9a0e617c3f1e5332650ff6.tar.gz ansible-role-borgbackup-8b0175c70cbf3ed63c9a0e617c3f1e5332650ff6.zip | |
feat: add storage quota support
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.
Diffstat (limited to 'defaults/main.yml')
| -rw-r--r-- | defaults/main.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/defaults/main.yml b/defaults/main.yml index e3af85c..9869589 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -75,11 +75,21 @@ borg_repo_name: "{{ inventory_hostname }}" # This will deny any request to delete data from the backup repository coming # from the client host. This is so that an attacker would not be able to simply # delete the backups from a compromised client. -# With this configuration option enabled you won't have the ability to remove +# With this configuration option enabled you won\'t have the ability to remove # old backups directly from the client that pushes the backups. # See https://borgbackup.readthedocs.io/en/stable/usage/notes.html#append-only-mode-forbid-compaction borg_mode_append_only: false +# Storage quota for the repository (--storage-quota) +# Limits the storage space used by this repository on the borg server. +# Format: N (bytes), NK (kilobytes), NM (megabytes), NG (gigabytes), NT (terabytes) +# Example: "100G" for 100 gigabytes +# Empty string means no quota (default). +# Note: When NOT using borg_ssh_key_per_repo, all repos for a host must have +# the same quota setting, or the role will fail. +# See https://borgbackup.readthedocs.io/en/stable/usage/serve.html +borg_storage_quota: "" + ################################################################################ # Borg Backup Configuration # See: https://borgbackup.readthedocs.io/en/stable/usage/create.html |