From 1d3f2d1e4c59867024470d3444e12698b7ebb22e Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 14:08:36 +0200 Subject: 0.0.4: max-size, exclude forms, --min-age --- internal/config/skel/krino.conf | 7 +++++++ internal/config/skel/template.conf | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'internal/config/skel') diff --git a/internal/config/skel/krino.conf b/internal/config/skel/krino.conf index dbd883b..7008dbc 100644 --- a/internal/config/skel/krino.conf +++ b/internal/config/skel/krino.conf @@ -19,5 +19,12 @@ ;; (recursive no) ;; (min-age 2m) ; skip files modified in the last 2 minutes ;; (max-read 50M) ; no content extraction above this size +;; (max-size 2G) ; skip files larger than this entirely ;; (busy ".part" ".aria2" ".crdownload") ;; (on-conflict suffix)) ; suffix | skip | overwrite + +;; Files no rule in any directory may touch. The conditions in one form +;; must all hold; a file matching any form is set aside. Some examples: +;; (exclude (type iso)) ; by type or extension +;; (exclude (name "^keep-")) ; by name, a regex +;; (exclude (type pdf) (content "confidential")) ; by content diff --git a/internal/config/skel/template.conf b/internal/config/skel/template.conf index c3af09d..d366716 100644 --- a/internal/config/skel/template.conf +++ b/internal/config/skel/template.conf @@ -15,10 +15,16 @@ ;; (fold yes) ; yes: "spolka" matches "spółka" ;; (min-age 2m) ; skip files modified in the last 2 minutes ;; (max-read 50M) ; no content extraction above this size +;; (max-size 2G) ; skip files larger than this entirely ;; (on-conflict suffix) ; suffix | skip | overwrite ;; Files and directories to leave alone, in .gitignore syntax. (ignore "*.part" "*.crdownload" "*.aria2" ".*") +;; Files no rule here may touch, tested before any rule. The conditions in +;; one form must all hold; a file matching any form is set aside. +;; (exclude (type iso img)) ; by extension +;; (exclude (name "^keep-")) ; by name, a regex +;; (exclude (type pdf) (content "confidential")) ; by content ;; Rules run top to bottom. Every rule that matches a file adds its actions ;; to that file; (stop) ends the search for it. Some examples: -- cgit v1.3