mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-21 14:58:02 +01:00
add paperless backup script
This commit is contained in:
parent
0746fbe04e
commit
f56091fefd
2 changed files with 8 additions and 0 deletions
3
playbooks/apps/files/bin/dump-paperless
Executable file
3
playbooks/apps/files/bin/dump-paperless
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
/usr/bin/docker compose -f /mnt/data/paperless-ngx/docker-compose.yaml exec -T webserver document_exporter ../export --delete --no-archive --no-thumbnail --split-manifest --no-progress-bar
|
|
@ -46,6 +46,11 @@
|
|||
name: Dump manuels
|
||||
minute: 45
|
||||
job: /mnt/data/bin/healthcheck dump-manuels /mnt/data/bin/dump-manuels
|
||||
- name: Cron - Dump paperless
|
||||
ansible.builtin.cron:
|
||||
name: Dump paperless
|
||||
minute: 47
|
||||
job: /mnt/data/bin/healthcheck dump-paperless /mnt/data/bin/dump-paperless
|
||||
- name: Cron - Dump miniflux
|
||||
ansible.builtin.cron:
|
||||
name: Dump miniflux
|
||||
|
|
Loading…
Reference in a new issue