From c301106ddd9fac51a6a6f22597c77e551aeb3d74 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 10 Nov 2018 17:23:32 +0100 Subject: [PATCH] Fix(Choux): backup script name --- files/choux_borg.service | 2 +- tasks/choux_borg_backup.yml | 4 ++-- vars/Choux.yml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/files/choux_borg.service b/files/choux_borg.service index 2f1ac16..93ef712 100644 --- a/files/choux_borg.service +++ b/files/choux_borg.service @@ -7,4 +7,4 @@ Nice=19 IOSchedulingClass=2 IOSchedulingPriority=7 ExecStartPre=/usr/bin/borg break-lock {{ borg_backup_repo }} -ExecStart={{ borg_script_path }} +ExecStart={{ borg_script_path }}/{{ borgbackup }} diff --git a/tasks/choux_borg_backup.yml b/tasks/choux_borg_backup.yml index bc04cd5..86cbdbd 100644 --- a/tasks/choux_borg_backup.yml +++ b/tasks/choux_borg_backup.yml @@ -4,7 +4,7 @@ path: "{{ backup_mount_point }}" src: "UUID={{ backup_disk_uuid }}" fstype: ext4 - opts: defaults + opts: defaultspresent state: mounted - name: Install borgbackup @@ -21,7 +21,7 @@ - name: Automate toward local RAID backup with systemd timer template: src: files/choux_borg.sh - dest: "{{ borg_script_path }}/backup.sh" + dest: "{{ borg_script_path }}/{{ borg_script_filename }}" mode: 755 - name: Backup systemd timer diff --git a/vars/Choux.yml b/vars/Choux.yml index e26c30b..28eac5d 100644 --- a/vars/Choux.yml +++ b/vars/Choux.yml @@ -6,6 +6,7 @@ backup_disk_uuid: 3a22e3a8-a454-431e-929f-8818c931914a backup_mount_point: /media/backup borg_backup_repo: "{{ backup_mount_point }}/Choux" borg_script_path: /root/.borg +borg_script_filename: backup.sh