This commit is contained in:
bel
2026-01-02 08:16:16 -07:00
parent b074763ab4
commit ce88d8cc25
10 changed files with 70 additions and 1 deletions

9
daily.d/lastn_clean.sh Executable file
View File

@@ -0,0 +1,9 @@
#! /usr/bin/env bash
now=$(date +%s)
for f in /volume1/video/FTP/2???.??.??.*; do
s=$(date -r "$f" +%s)
if ((now-s > 60*60*24)); then
rm -f "$f"
fi
done