Fix CRON task

This commit is contained in:
2026-05-31 07:07:41 +02:00
parent 86f7c0589c
commit d249f257b8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -124,10 +124,10 @@ Running the container without arguments only executes the default `pve-backup-re
Example crontab on the host to run the report every day at 02:00:
```cron
SHELL=/bin/sh
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 2 * * * cd /srv/pve-backup-report && /usr/bin/flock -n /tmp/pve-backup-report.lock /usr/bin/docker compose run --rm pve-backup-report --generate-pdf >> /var/log/pve-backup-report.log 2>&1
0 7 * * * root cd /srv/pve-backup-report && /usr/bin/flock -n /tmp/pve-backup-report.lock /usr/bin/docker compose run --rm -T pve-backup-report --generate-pdf >> /var/log/pve-backup-report.log 2>&1
```
Replace `/srv/pve-backup-report` with the actual path to the repository. The `cd` is important: Docker Compose finds `compose.yaml` there and the application loads `.env` from it.