updated document exporter command so that it works.

This commit is contained in:
2026-09-20 11:59:39 -05:00
parent dc9f0a77e6
commit f33c5f700b
+1 -1
View File
@@ -51,7 +51,7 @@ echo "Starting Paperless-ngx backup process..."
# Step 1: Execute the Docker command to create the backup. # Step 1: Execute the Docker command to create the backup.
echo "Running Paperless-ngx document exporter via Docker..." echo "Running Paperless-ngx document exporter via Docker..."
sudo docker compose exec -T webserver document_exporter ../export -z sudo docker compose -f /srv/docker/dockhand/data/stacks/Local/paperless-ngx/compose.yaml exec -T webserver document_exporter ../export -z
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Error: Docker command failed to create Paperless-ngx backup." >&2 echo "Error: Docker command failed to create Paperless-ngx backup." >&2
curl -H "Authorization: Bearer $NTFY_TOKEN" -d "Error: Docker command failed to create Paperless-ngx backup." "$NTFY_SERVER/$NTFY_TOPIC" > /dev/null 2>&1 curl -H "Authorization: Bearer $NTFY_TOKEN" -d "Error: Docker command failed to create Paperless-ngx backup." "$NTFY_SERVER/$NTFY_TOPIC" > /dev/null 2>&1