Create borg repo directory on storagebox

This commit is contained in:
phil 2023-05-08 14:36:32 +02:00
parent 9b5526b47e
commit 701b4f82f0
2 changed files with 6 additions and 0 deletions

View file

@ -15,6 +15,7 @@ borg_ssh_command: false
borg_remote_path: false
borg_remote_rate_limit: 0
borg_repo_key: repokey-blake2
borg_repo_path: borg-repository
borg_retention_policy:
keep_hourly: 3
keep_daily: 7

View file

@ -8,3 +8,8 @@
ansible.builtin.command:
cmd: "echo {{ ssh_key.stdout_lines }} | ssh {{ hetzner_storagebox.user }}@{{ hetzner_storagebox.server }} -p {{ hetzner_storagebox.port }} install-ssh-key"
delegate_to: localhost
- name: "Storagebox | Create backup directories"
ansible.builtin.command:
cmd: "ssh {{ hetzner_storagebox.user }}@{{ hetzner_storagebox.server}} -p {{ hetzner_storagebox.port }} mkdir -p {{ borg_repo_path }}"
delegate_to: "{{ hetzner_storagebox_host }}"