npub1hm6l4uklcnvwmyv8c9tv9np53f0v2w6jg6wrlarr0pne0rhy2qaqz899nf (npub1hm6…99nf) я обычно для таких целей использую что-то типо такого:
find /backups -type f -mtime +4 -deleteИз мана:
-mtime n
File's data was last modified less than, more than or exactly n*24 hours ago. See the comments for -atime to under‐
stand how rounding affects the interpretation of file modification timesНу, если у тебя бэкапы например каждый день делаются, это удобно и коротко получается