wiki_ghostguild/cron/crontab
Jennie Robinson Faber 8514476030 Fix cron container: pass env vars to cron jobs
Alpine crond doesn't inherit the container environment, so
OUTLINE_API_TOKEN and other vars were missing. Dump env at
startup and source it in each cron entry.
2026-03-28 13:35:03 +00:00

6 lines
327 B
Text

# Outline database + file backup — daily at 3 AM UTC
0 3 * * * . /etc/environment.sh; /app/scripts/outline-backup.sh /backups/outline >> /var/log/outline-backup.log 2>&1
# Wiki content export to git — daily at 4 AM UTC
0 4 * * * . /etc/environment.sh; /app/scripts/export-content-cron.sh >> /var/log/wiki-export.log 2>&1