From ef2a51121709ace8477f287b98c87b83b1b94378 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sun, 21 Dec 2025 23:15:56 +0100 Subject: [PATCH] recyclarr: add default daily cron job for recyclarr sync (#10208) * Add default daily cron job for recyclarr sync - Create /etc/cron.d/recyclarr file with @daily schedule - Log output to /root/.config/recyclarr/sync.log - Uses recommended default schedule from recyclarr docs - Follows project convention for cron jobs Implements #10182 * Add notes about daily cron job to recyclarr.json - Info about automatic daily sync via cron - Reference to cron file location for customization - Warning about configuring instances before first sync --- frontend/public/json/recyclarr.json | 11 ++++++++++- install/recyclarr-install.sh | 8 ++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/public/json/recyclarr.json b/frontend/public/json/recyclarr.json index 573516dd7..0bb98933c 100644 --- a/frontend/public/json/recyclarr.json +++ b/frontend/public/json/recyclarr.json @@ -31,5 +31,14 @@ "username": null, "password": null }, - "notes": [] + "notes": [ + { + "type": "warning", + "content": "Configure your Radarr/Sonarr instances in `/root/.config/recyclarr/recyclarr.yml` before the first sync." + }, + { + "type": "info", + "content": "Automatic daily sync is configured via `/etc/cron.d/recyclarr`. Sync logs are saved to `/root/.config/recyclarr/sync.log`." + } + ] } diff --git a/install/recyclarr-install.sh b/install/recyclarr-install.sh index e9cc3f508..03a71879f 100644 --- a/install/recyclarr-install.sh +++ b/install/recyclarr-install.sh @@ -24,6 +24,14 @@ mkdir -p /root/.config/recyclarr $STD recyclarr config create msg_ok "Configured Recyclarr" +msg_info "Setting up Daily Sync Cron" +cat </etc/cron.d/recyclarr +# Run recyclarr sync daily +@daily root recyclarr sync >> /root/.config/recyclarr/sync.log 2>&1 +EOF +chmod 644 /etc/cron.d/recyclarr +msg_ok "Setup Daily Sync Cron" + motd_ssh customize cleanup_lxc