Fix(Choux): backup script name

This commit is contained in:
Bertrand Benjamin 2018-11-10 17:23:32 +01:00
parent 5646bb4402
commit c301106ddd
3 changed files with 4 additions and 3 deletions

View File

@ -7,4 +7,4 @@ Nice=19
IOSchedulingClass=2 IOSchedulingClass=2
IOSchedulingPriority=7 IOSchedulingPriority=7
ExecStartPre=/usr/bin/borg break-lock {{ borg_backup_repo }} ExecStartPre=/usr/bin/borg break-lock {{ borg_backup_repo }}
ExecStart={{ borg_script_path }} ExecStart={{ borg_script_path }}/{{ borgbackup }}

View File

@ -4,7 +4,7 @@
path: "{{ backup_mount_point }}" path: "{{ backup_mount_point }}"
src: "UUID={{ backup_disk_uuid }}" src: "UUID={{ backup_disk_uuid }}"
fstype: ext4 fstype: ext4
opts: defaults opts: defaultspresent
state: mounted state: mounted
- name: Install borgbackup - name: Install borgbackup
@ -21,7 +21,7 @@
- name: Automate toward local RAID backup with systemd timer - name: Automate toward local RAID backup with systemd timer
template: template:
src: files/choux_borg.sh src: files/choux_borg.sh
dest: "{{ borg_script_path }}/backup.sh" dest: "{{ borg_script_path }}/{{ borg_script_filename }}"
mode: 755 mode: 755
- name: Backup systemd timer - name: Backup systemd timer

View File

@ -6,6 +6,7 @@ backup_disk_uuid: 3a22e3a8-a454-431e-929f-8818c931914a
backup_mount_point: /media/backup backup_mount_point: /media/backup
borg_backup_repo: "{{ backup_mount_point }}/Choux" borg_backup_repo: "{{ backup_mount_point }}/Choux"
borg_script_path: /root/.borg borg_script_path: /root/.borg
borg_script_filename: backup.sh