mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 01:10:12 -08:00
Commit local changes before merging with remote
This commit is contained in:
23
crontab/crontab-io.txt
Normal file
23
crontab/crontab-io.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
# Enhanced Crontab Entries for IO (Download/Acquisition Server)
|
||||
#
|
||||
# This system runs download management services (Radarr, Sonarr, SABnzbd, etc.)
|
||||
# and should focus on Docker container management rather than media server tasks
|
||||
|
||||
# Daily Docker backup at 0200 with enhanced logging
|
||||
# Backs up Docker container configurations and data
|
||||
0 2 * * * { echo "Starting Docker backup"; /home/acedanger/shell/backup-docker.sh; echo "Docker backup completed with exit code: $?"; } 2>&1 | logger -t docker-backup -p user.info
|
||||
|
||||
# Daily system backup at 0400 with auto-cleanup
|
||||
0 4 * * * /home/acedanger/shell/crontab/crontab-backup-system.sh backup auto --auto-cleanup 2>&1 | logger -t crontab-backup -p user.info
|
||||
|
||||
# Daily .env files backup at 0300 with enhanced logging
|
||||
# Backs up Docker container .env files to Git repository
|
||||
0 3 * * * { echo "Starting .env files backup"; /home/acedanger/shell/backup-env-files.sh; echo ".env backup completed with exit code: $?"; } 2>&1 | logger -t env-backup -p user.info
|
||||
|
||||
# Weekly .env backup validation at 0830 on Sundays
|
||||
# Validates the integrity of .env backup repository
|
||||
30 8 * * 0 { echo "Starting .env backup validation"; /home/acedanger/shell/validate-env-backups.sh; echo ".env validation completed with exit code: $?"; } 2>&1 | logger -t env-validation -p user.info
|
||||
|
||||
# Optional: Monitor Docker container health (every 6 hours)
|
||||
# This can help detect if any download services are failing
|
||||
# 0 */6 * * * { echo "Docker health check"; docker ps --format "table {{.Names}}\t{{.Status}}" | grep -v "Up"; } 2>&1 | logger -t docker-health -p user.info
|
||||
Reference in New Issue
Block a user