Files
parentzone_downloader/scripts/crontab
tudor 2557b17ecd
All checks were successful
Build Docker Image / build (push) Successful in 1m30s
Update scripts/crontab
running the same day, end of day, to maintain photos in the day they were taken
2026-03-03 13:51:31 +00:00

13 lines
496 B
Plaintext

# ParentZone Downloaders Cron Schedule
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin
# Run both downloaders daily at 2:00 AM
0 23 * * * /app/scripts/scheduler.sh >> /var/log/cron.log 2>&1
# Keep cron log file from growing too large (weekly cleanup)
0 3 * * 0 find /var/log -name "cron.log" -size +100M -exec truncate -s 50M {} \; 2>/dev/null || true
# Cleanup old snapshot files (keep last 90 days)
30 3 * * 0 find /app/data/snapshots -name "*.html" -mtime +90 -delete 2>/dev/null || true