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

view full story

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 wont clean all folders. Thank a lot! (HowTos)