From 8b0175c70cbf3ed63c9a0e617c3f1e5332650ff6 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Sat, 27 Jun 2026 21:20:35 +0000 Subject: 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. --- defaults/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'defaults') 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 -- cgit v1.2.3