tune cron schedules
This commit is contained in:
parent
07e7a68b58
commit
b92cae3c69
3 changed files with 5 additions and 16 deletions
|
|
@ -90,8 +90,8 @@
|
||||||
# External library management
|
# External library management
|
||||||
library = {
|
library = {
|
||||||
scan = {
|
scan = {
|
||||||
cronExpression = "0 0 * * *"; # Daily at midnight
|
cronExpression = "0 19 * * *";
|
||||||
enabled = true; # Scan external libraries for changes
|
enabled = false; # Scan external libraries for changes
|
||||||
};
|
};
|
||||||
watch.enabled = true; # Don't watch for real-time changes (saves resources)
|
watch.enabled = true; # Don't watch for real-time changes (saves resources)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
services.scheduled-commands.aicloud-backup = {
|
services.scheduled-commands.aicloud-backup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Backup aicloud files";
|
description = "Backup aicloud files";
|
||||||
interval = "*-*-* 12:00:00";
|
interval = "*-*-* 18:00:00";
|
||||||
commands = [
|
commands = [
|
||||||
"rsync -avP aicloud:~/ /mnt/storage/Backup/aicloud/ --exclude='/.*'"
|
"rsync -avP aicloud:~/ /mnt/storage/Backup/aicloud/ --exclude='/.*'"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@
|
||||||
../../../modules/media-server.nix
|
../../../modules/media-server.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Automatic container updates
|
|
||||||
virtualisation.podman.updateContainers = {
|
|
||||||
enable = true;
|
|
||||||
interval = "Wed *-*-* 06:00:00";
|
|
||||||
};
|
|
||||||
|
|
||||||
# GRUB bootloader with ZFS support
|
# GRUB bootloader with ZFS support
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -182,7 +176,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Sync and scrub schedule
|
# Sync and scrub schedule
|
||||||
sync.interval = "03:00";
|
sync.interval = "02:00";
|
||||||
scrub.interval = "Mon *-*-* 06:00:00";
|
scrub.interval = "Mon *-*-* 06:00:00";
|
||||||
|
|
||||||
# Files and directories to exclude from parity
|
# Files and directories to exclude from parity
|
||||||
|
|
@ -235,12 +229,7 @@
|
||||||
"/mnt/storage/Media/DCIM"
|
"/mnt/storage/Media/DCIM"
|
||||||
"/mnt/storage/Media/nsfw"
|
"/mnt/storage/Media/nsfw"
|
||||||
];
|
];
|
||||||
# Examples:
|
backupFrequency = "*-*-* 00:00:00";
|
||||||
# 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";
|
|
||||||
retention = {
|
retention = {
|
||||||
keepDaily = 7;
|
keepDaily = 7;
|
||||||
keepWeekly = 4;
|
keepWeekly = 4;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue