diff --git a/tasks/choux_borg_backup.yml b/tasks/choux_borg_backup.yml index 558666a..638c4c6 100644 --- a/tasks/choux_borg_backup.yml +++ b/tasks/choux_borg_backup.yml @@ -4,10 +4,16 @@ name: borg state: present +- name: Create script directory + file: + path: "{{ borg_script_path }}" + state: directory + mode: 755 + - name: Automate toward local RAID backup with systemd timer template: src: files/choux_borg.sh - dest: "{{ borg_script_path }}" + dest: "{{ borg_script_path }}"/backup.sh mode: 755 - name: Backup systemd timer diff --git a/vars/Choux.yml b/vars/Choux.yml index f545ea4..3e775a5 100644 --- a/vars/Choux.yml +++ b/vars/Choux.yml @@ -3,6 +3,6 @@ deploy_public_key: files/id_ed25519_home.pub borg_backup_repo: /media/backup/Choux -borg_script_path: /root/.borg/backup.sh +borg_script_path: /root/.borg