Auto-Delete By Date?
Jammin1911
Icrontian
I'm wondering if someone can recommend some sort of software that I can use to automatically manage disk space on a certain specified part of a hard drive.
I'll try to keep it simple.
Basically I have a folder called C:\Incoming
I need some software that will monitor free space on the C: drive and when the amount free hits a specified threshold, say 5GB, it will delete the oldest file it can find somewhere under C:\Incoming just to ensure that the free disk space never drops below 5GB.
Hopefully this makes sense?
I'll try to keep it simple.
Basically I have a folder called C:\Incoming
I need some software that will monitor free space on the C: drive and when the amount free hits a specified threshold, say 5GB, it will delete the oldest file it can find somewhere under C:\Incoming just to ensure that the free disk space never drops below 5GB.
Hopefully this makes sense?
0
Comments
find c:\incoming -ctime +# -daystart -exec rm "{}" \
Where # is the number of days backwards from midnight of your current day. All files on or prior to that date will be removed.
i'll give this a shot. its not quite the solution I was looking for but it should do the trick for now.
i've never used cygwin.. i might be bugging you here again if i dont know what im looking at once i get it ;]
the problem is that some days there is more data than others.. could be up to triple or more in some cases... so this wont manage the space too efficiently in this scenario but it should definitely help.
You could also use the script to put all the files that have been uploaded that day into a separate folder to keep things neat and tidy.