align borg and burp folders to backup, switch to systemd for scheduling

This commit is contained in:
2026-01-24 10:44:35 +01:00
parent 17d54301f7
commit c111d737bb
7 changed files with 41 additions and 25 deletions

View File

@@ -14,7 +14,7 @@
path: "{{ borg_remote_dir }}{{ inventory_hostname }}"
state: directory
owner: "{{ borg_account }}"
group: "{{ borg_account }}"
group: "backup"
delegate_to: "{{ borg_server }}"
- name: get public key
@@ -32,7 +32,7 @@
line: 'command="borg serve --restrict-to-path {{ borg_remote_dir }}" {{ public_key }} from {{ inventory_hostname }}'
create: true
owner: "{{ borg_account }}"
group: "{{ borg_account }}"
group: "backup"
mode: 0600
delegate_to: "{{ borg_server }}"
@@ -49,5 +49,4 @@
ansible.builtin.command: "/usr/bin/borg init --encryption=keyfile {{ borg_account }}@{{ borg_server }}:{{ borg_remote_dir }}{{ inventory_hostname }}"
environment:
BORG_PASSPHRASE: "{{ borg_passphrase }}"