add paperless backup script

This commit is contained in:
Gabriel Augendre 2024-11-06 18:30:05 +01:00
parent 0746fbe04e
commit f56091fefd
2 changed files with 8 additions and 0 deletions

View 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

View file

@ -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