Files
EpicNext-Cms/scripts/setup-cron.sh
T
openhands b688760309
CI / check (push) Successful in 4m6s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m15s
feat: add documentation, alerts, cron setup and update dashboard
2026-09-13 21:16:08 +02:00

11 lines
318 B
Bash
Executable File

#!/usr/bin/env bash
# Setup cron jobs for maintenance
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Run backup every day at 03:00
echo "0 3 * * * $SCRIPT_DIR/backup.sh" | crontab -
# Run prune every Sunday at 04:00
echo "0 4 * * 0 $SCRIPT_DIR/docker-prune.sh" | crontab -
echo "Cron jobs configured."