diff --git a/playbooks/apps/files/bin/dump-paperless b/playbooks/apps/files/bin/dump-paperless new file mode 100755 index 0000000..e63438f --- /dev/null +++ b/playbooks/apps/files/bin/dump-paperless @@ -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 diff --git a/playbooks/system/cron.yaml b/playbooks/system/cron.yaml index 2d7e04d..15e1704 100644 --- a/playbooks/system/cron.yaml +++ b/playbooks/system/cron.yaml @@ -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