I need help

Status
Not open for further replies.

Aleksandar

Cadet
Joined
Sep 27, 2013
Messages
1
I use FreeNAS server for recording video files from cctv IP camera,but problem appears when hhd gets full, is there a script that would delete chronologically oldest files when hdd gets 80% full? or some overwrite function?
 

titan_rw

Guru
Joined
Sep 1, 2012
Messages
586
Nothing that I can think of built in. However it should be easy enough to do with simple scripting.

You can use "df", or "zpool list" or something to determine how much space is left. If it's below a threshold, run 'find' specifying 'older than' a certain date, and a '-exec rm' kind of thing to delete old files.
 
Status
Not open for further replies.
Top