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