monica: add backup script

This commit is contained in:
Jef Roosens 2024-01-11 22:28:00 +01:00
parent 363eaecc07
commit 86f741c3e9
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 25 additions and 0 deletions

View file

@ -43,3 +43,11 @@
chdir: '/etc/monica'
cmd: 'docker compose up -d --remove-orphans'
when: 'res.changed'
- name: Ensure backup script is present
ansible.builtin.copy:
src: 'monica.backup.sh'
dest: '/etc/backups/monica.backup.sh'
owner: 'root'
group: 'root'
mode: '0644'