Add optional argument: remote_rate_limit. By @kenayagi (#47)

This commit is contained in:
K 2020-12-02 12:56:50 +01:00 committed by GitHub
parent 3e87b539d2
commit 613b565716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/borgba
- `borg_lock_wait_time`: Config maximum seconds to wait for acquiring a repository/cache lock. Defaults to 5 seconds. - `borg_lock_wait_time`: Config maximum seconds to wait for acquiring a repository/cache lock. Defaults to 5 seconds.
- `borg_ssh_command`: Command to use instead of just "ssh". This can be used to specify ssh options. - `borg_ssh_command`: Command to use instead of just "ssh". This can be used to specify ssh options.
- `borg_remote_path`: Path to the borg executable on the remote. It will default to `borg`. - `borg_remote_path`: Path to the borg executable on the remote. It will default to `borg`.
- `borg_remote_rate_limit`: Remote network upload rate limit in kiBytes/second.
- `borg_encryption_passcommand`: The standard output of this command is used to unlock the encryption key. - `borg_encryption_passcommand`: The standard output of this command is used to unlock the encryption key.
- `borg_retention_policy`: Retention policy for how many backups to keep in each category (daily, weekly, monthly, etc). - `borg_retention_policy`: Retention policy for how many backups to keep in each category (daily, weekly, monthly, etc).
- `ssh_key_file`: Path to a private ssh key file (default is `.ssh/id_ed25519`). It generates a ed25519 key if the file doesn't exist yet. - `ssh_key_file`: Path to a private ssh key file (default is `.ssh/id_ed25519`). It generates a ed25519 key if the file doesn't exist yet.

View File

@ -14,6 +14,7 @@ borg_encryption_passcommand: false
borg_lock_wait_time: 5 borg_lock_wait_time: 5
borg_ssh_command: false borg_ssh_command: false
borg_remote_path: false borg_remote_path: false
borg_remote_rate_limit: 0
borg_retention_policy: borg_retention_policy:
keep_hourly: 3 keep_hourly: 3
keep_daily: 7 keep_daily: 7

View File

@ -66,7 +66,9 @@ storage:
compression: auto,zstd compression: auto,zstd
# Remote network upload rate limit in kiBytes/second. # Remote network upload rate limit in kiBytes/second.
#remote_rate_limit: 5000 {% if borg_remote_rate_limit %}
remote_rate_limit: {{ borg_remote_rate_limit }}
{% endif %}
# Command to use instead of just "ssh". This can be used to specify ssh options. # Command to use instead of just "ssh". This can be used to specify ssh options.
# ssh_command: ssh -i ~/.ssh/id_ed25519 # ssh_command: ssh -i ~/.ssh/id_ed25519