5

Remove oldest folders + files (50GB) from a folder when share/HD reaches 95% full capacity

view full story
linux-howto

http://unix.stackexchange.com – I have a big share (~5TB) that is getting full. Now I want to make a script that deletes data from 2 specified folders. But this need to be the oldest files/folders and it need to stop when ~50GB has been removed, so it won't delete all folders. (HowTos)