I mean, I have video-archive and need to delete some outdated files, say older that week. I need to write a script or may be there are some build-in solutions? Thank you!
logrotate ?
1 Like
find /tmp /mnt/sda -type f -mtime +7 -ls
3 Likes
might need "full" find for this, instead of the busybox version shipping with the router.
1 Like
You, dear sirs, are best part of internet! many thanks! ![]()
find "${archive_dir:?}" -maxdepth 1 -type f -mmin +"${max_age_in_minutes:?}" -exec rm -f {} \;
Works with Busybox find (at least in OpenWrt 24.10).
7 Likes
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.