mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-21 23:08:01 +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
|
name: Dump manuels
|
||||||
minute: 45
|
minute: 45
|
||||||
job: /mnt/data/bin/healthcheck dump-manuels /mnt/data/bin/dump-manuels
|
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
|
- name: Cron - Dump miniflux
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: Dump miniflux
|
name: Dump miniflux
|
||||||
|
|
Loading…
Reference in a new issue