February 14, 20206 yr I have an unassigned device where NZBGet downloads it's files. For some reason it does not always clean up. So I want to run a user script to clean it up. I came up with this. Basically says, at least I think it does, find and delete all files and directories, excluding the . and .. dirs that where last modified 48 hours ago and are empty or size less than 4k. Will this do what I think it will? find /mnt/disks/SSD_01/ . -type d,f -noleaf -mtime +1 -empty -size -4k -delete
Archived
This topic is now archived and is closed to further replies.