From b92cae3c69987b16e6c01bfb1205400d88a24e58 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 2 Dec 2025 02:11:18 +0100 Subject: [PATCH] tune cron schedules --- config/immich.nix | 4 ++-- hosts/nixos/hs/home.nix | 2 +- hosts/nixos/hs/system.nix | 15 ++------------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/config/immich.nix b/config/immich.nix index 8ce94a1..b179c57 100644 --- a/config/immich.nix +++ b/config/immich.nix @@ -90,8 +90,8 @@ # External library management library = { scan = { - cronExpression = "0 0 * * *"; # Daily at midnight - enabled = true; # Scan external libraries for changes + cronExpression = "0 19 * * *"; + enabled = false; # Scan external libraries for changes }; watch.enabled = true; # Don't watch for real-time changes (saves resources) }; diff --git a/hosts/nixos/hs/home.nix b/hosts/nixos/hs/home.nix index edec75b..c435b73 100644 --- a/hosts/nixos/hs/home.nix +++ b/hosts/nixos/hs/home.nix @@ -14,7 +14,7 @@ services.scheduled-commands.aicloud-backup = { enable = true; description = "Backup aicloud files"; - interval = "*-*-* 12:00:00"; + interval = "*-*-* 18:00:00"; commands = [ "rsync -avP aicloud:~/ /mnt/storage/Backup/aicloud/ --exclude='/.*'" ]; diff --git a/hosts/nixos/hs/system.nix b/hosts/nixos/hs/system.nix index bda433c..d23317b 100644 --- a/hosts/nixos/hs/system.nix +++ b/hosts/nixos/hs/system.nix @@ -13,12 +13,6 @@ ../../../modules/media-server.nix ]; - # Automatic container updates - virtualisation.podman.updateContainers = { - enable = true; - interval = "Wed *-*-* 06:00:00"; - }; - # GRUB bootloader with ZFS support boot.loader.grub = { enable = true; @@ -182,7 +176,7 @@ }; # Sync and scrub schedule - sync.interval = "03:00"; + sync.interval = "02:00"; scrub.interval = "Mon *-*-* 06:00:00"; # Files and directories to exclude from parity @@ -235,12 +229,7 @@ "/mnt/storage/Media/DCIM" "/mnt/storage/Media/nsfw" ]; - # Examples: - # backupFrequency = "daily"; # Midnight (default) - # backupFrequency = "*-*-* 03:00:00"; # Every day at 3:00 AM - # backupFrequency = "*-*-* 22:30:00"; # Every day at 10:30 PM - # backupFrequency = "Mon,Wed,Fri 02:00:00"; # Mon/Wed/Fri at 2:00 AM - backupFrequency = "daily"; + backupFrequency = "*-*-* 00:00:00"; retention = { keepDaily = 7; keepWeekly = 4;