added manual neuclear option to arrs cleanup
This commit is contained in:
@@ -3,23 +3,29 @@
|
||||
# --------------------------------- Daily Sync Maintenance ------------------------------------
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# Daily orchestrator — runs the full daily maintenance window in the correct order.
|
||||
# Schedule: 0 1 * * * (1am daily)
|
||||
#
|
||||
# What it does:
|
||||
# 1. Iterates DAILY_MAINTENANCE_SCRIPTS — runs git pull first, then additional jobs
|
||||
# 2. Syncs all media shares in the correct direction for the local server
|
||||
# 3. Additional scripts in DAILY_MAINTENANCE_SCRIPTS run after the sync completes
|
||||
# Execution order:
|
||||
# 1. git_pull_execute.sh — pull latest scripts first, always
|
||||
# 2. Media share sync — HOST*_DAILY_SYNC_SHARES pushed to remote
|
||||
# 3. HOST*_PERSONAL_SHARES — personal encrypted shares after media
|
||||
# 4. media_shares_permissions.sh — fix ownership before arr cleanup
|
||||
# 5. media_cleaner.sh anime — remove junk from anime shares
|
||||
# 6. media_cleaner.sh media — remove junk from media shares
|
||||
# 7. lidarr_cleanup.sh — remove orphaned music files
|
||||
# 8. sonarr_cleanup.sh — remove orphaned TV files
|
||||
# 9. radarr_cleanup.sh — remove orphaned movie files
|
||||
# 10. docker_daily_restart.sh — restart containers that need daily restart
|
||||
#
|
||||
# Media share sync:
|
||||
# Each server pushes only the shares it owns (source of truth) — direction is automatic.
|
||||
# HOST1 pushes: Movies, Tv_Shows, Music, Books etc. → HOST2
|
||||
# HOST2 pushes: Anime_Shows, Anime_Movies → HOST1
|
||||
# Personal encrypted shares synced after media shares.
|
||||
# detect_hosts() determines which server is running — no script changes needed.
|
||||
# Share lists configured in Master.conf ORCHESTRATORS section.
|
||||
# Configuration in Master.conf:
|
||||
# DAILY_MAINTENANCE_SCRIPTS — pre/post-sync scripts (git pull, docker restart)
|
||||
# MEDIA_MANAGEMENT_JOBS — media maintenance jobs run after sync
|
||||
# HOST1_DAILY_SYNC_SHARES — shares HOST1 pushes to HOST2
|
||||
# HOST2_DAILY_SYNC_SHARES — shares HOST2 pushes to HOST1
|
||||
# HOST1/2_PERSONAL_SHARES — encrypted personal shares
|
||||
#
|
||||
# Bidirectional — same script runs on both servers, correct direction automatic.
|
||||
# Per-share rsync handled by rsync.sh — this script tracks pass/fail and total time.
|
||||
# All job lists configured in Master.conf — no script changes needed to add or remove jobs.
|
||||
# Schedule: 0 1 * * * (1am daily — configured in User Scripts plugin)
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
Reference in New Issue
Block a user