-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig.example.yml
More file actions
30 lines (26 loc) · 1.94 KB
/
config.example.yml
File metadata and controls
30 lines (26 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Configuration for the mover script
Paths:
CACHE_PATH: /mnt/cache-disks/cache01 #The path to your cache directory. !!THIS IS YOUR CACHE DISK ROOT, NOT MERGERFS CACHE MOUNT!!
BACKING_PATH: /mnt/media-cold #The path to the backing storage pool where files will be moved.
LOG_PATH: /var/log/cache-mover.log #The path for the log file generated by the script.
Settings:
AUTO_UPDATE: false
UPDATE_BRANCH: main #main/dev
THRESHOLD_PERCENTAGE: 70 #The usage percentage of the cache directory that triggers the file-moving process. Set both this and TARGET_PERCENTAGE to 0 to empty the cache completely (excluding excluded/snapraid files).
TARGET_PERCENTAGE: 25 #The target usage percentage to achieve after moving files. Set both this and THRESHOLD_PERCENTAGE to 0 to empty the cache completely.
MAX_WORKERS: 8 #The maximum number of parallel file-moving operations. Lower this if you don't have many disks or your cache isn't a speedy boii.
MAX_LOG_SIZE_MB: 100 #The maximum size for the log file before it's rotated.
BACKUP_COUNT: 5 #The number of backup log files to maintain.
SCHEDULE: "0 3 * * *" #Cron schedule expression (Docker only - ignored when using systemd/cron)
LOG_LEVEL: INFO #Log level, use DEBUG for more verbose logging.
NOTIFICATIONS_ENABLED: false #apprise notifs
NOTIFY_THRESHOLD: true #notify on threshold not reached
NOTIFICATION_URLS: #urls https://github.com/caronc/apprise#productivity-based-notifications
- 'discord://webhook_id/webhook_token'
- 'slack://hooks/tokenA/tokenB/tokenC'
EXCLUDED_DIRS: #Directories to exclude from cache moving. Supports single dir names or paths. Read README.md for examples.
- snapraid
# - media/downloads
# - media/torrents/audiobooks
KEEP_EMPTY_DIRS: false #Set to true to preserve empty directories after moving files.
# INSTANCE_ID: tier01 #For running multiple instances, read README.md for more info, leave blank if unsure.