Question: - we manually moving/removing old files, when we are getting alarm as /dir1/dir2 size greater than 90%.
we manually moving/removing old files and reduce the file size to less than 90%
I want to delete all 2months before old files once we get the thresh hold >= 90% in a single unix commands (or) background script delete old files automatically once we get the thresh hold >= 90%
You can setup a cron job, and check regularly the size of /dir1/dir2 using the du command, and remove/move the files in that directory when its size reaches the threshold.