Add the ability to exclude certain paths from backup
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
system: false
|
||||
become: true
|
||||
|
||||
- name: backrest
|
||||
- name: Install backrest
|
||||
template:
|
||||
src: files/backrest.sh
|
||||
dest: /home/restic/backrest.sh
|
||||
@ -18,6 +18,22 @@
|
||||
owner: restic
|
||||
become: true
|
||||
|
||||
- name: Install includes files
|
||||
copy:
|
||||
content: "{{ restic_backup_locations | join('\n') }}"
|
||||
dest: /home/restic/restic-include.txt
|
||||
mode: "0644"
|
||||
owner: restic
|
||||
become: true
|
||||
|
||||
- name: Install excludes files
|
||||
copy:
|
||||
content: "{{ restic_backup_excludes | join('\n') }}"
|
||||
dest: /home/restic/restic-excludes.txt
|
||||
mode: "0644"
|
||||
owner: restic
|
||||
become: true
|
||||
|
||||
- name: Set restic binary permissions
|
||||
file:
|
||||
path: /usr/bin/restic
|
||||
|
Reference in New Issue
Block a user