This commit is contained in:
Leon van Kammen 2025-08-01 17:50:56 +02:00
parent 3b6afc90ec
commit 17eba653ef

View file

@ -139,12 +139,12 @@ cleanup_big_files(){
} }
delete_big_files(){ delete_big_files(){
#./manyfold infinite 86400 cleanup_big_files /mnt/models 5 5 & # 5 days for files over 5MB (5 in 2025, 6 in 2026 e.g. ?)
# check every day to delete files older than 5 days and >5mb (5mb in 2025, 6mb in 2026 e.g.) # check every day to delete files older than 5 days and >5mb (5mb in 2025, 6mb in 2026 e.g.)
test -z "$NO_DELETEBIGFILES" && { test -z "$NO_DELETEBIGFILES" && {
intervalSec=86400 # = 1 day everySeconds=86400 # = 1 day
maxMB=$(( $(date +%Y) - 2020 )) maxMB=$(( $(date +%Y) - 2020 ))
$0 infinite 5 cleanup_big_files /mnt/models $intervalSec $maxMB & maxDays=5
$0 infinite $everySeconds cleanup_big_files /mnt/models $maxDays $maxMB &
} }
} }