add borg_ssh_key_name, renamed borg_ssh_key_file to borg_ssh_key_file_path

This commit is contained in:
Frank Dornheim 2023-03-19 11:34:18 +01:00
parent d0682b2f4e
commit 273d06d18e
3 changed files with 12 additions and 6 deletions

View File

@ -5,10 +5,12 @@ borg_one_file_system: true
borg_exclude_from: []
borg_encryption_passcommand: false
borg_lock_wait_time: 5
borg_ssh_key_file: "{{ backup_user_info.home }}/.ssh/backup"
borg_ssh_command: "ssh -i {{ borg_ssh_key_file }}"
# borg_ssh_command: "ssh -i {{ borg_ssh_key_file }} -o StrictHostKeyChecking=no"
borg_ssh_key_type: "ed25519"
borg_ssh_key_name: "id_{{ borg_ssh_key_type }}"
borg_ssh_key_file_path: "{{ backup_user_info.home }}/.ssh/{{ borg_ssh_key_name }}"
# borg_ssh_key_file_path: "{{ backup_user_info.home }}/.ssh/backup" # static key
borg_ssh_command: "ssh -i {{ borg_ssh_key_file_path }}"
# borg_ssh_command: "ssh -i {{ borg_ssh_key_file_path }} -o StrictHostKeyChecking=no"
borg_remote_path: false
borg_remote_rate_limit: 0
borg_retention_policy:

View File

@ -101,7 +101,7 @@ argument_specs:
type: int
required: false
description: Remote network upload rate limit in kiBytes/second.
borg_ssh_key_file:
borg_ssh_key_file_path:
type: str
required: false
description: Path to ssh-key
@ -176,3 +176,7 @@ argument_specs:
type: str
required: false
description: The algorithm used to generate the SSH private key
borg_ssh_key_name:
type: str
required: false
description: Name of the SSH public and private key

View File

@ -39,8 +39,8 @@
hostname: database1.example.org
port: 5433
borg_install_method: pip
borg_ssh_key_file: "{{ backup_user_info.home }}/.ssh/backup"
borg_ssh_command: "ssh -i {{ borg_ssh_key_file }} -o StrictHostKeyChecking=no"
borg_ssh_key_file_path: "{{ backup_user_info.home }}/.ssh/backup"
borg_ssh_command: "ssh -i {{ borg_ssh_key_file_path }} -o StrictHostKeyChecking=no"
borgmatic_timer: cron
post_tasks: