Page 1 of 1

Starting and Cleanup....

Posted: Wed May 26, 2004 10:04 pm
by yosco
Is there a way to make Zoneminder starup and have the processes running at startup of the computer?

Is there an easy way to automate the deletion of older events? I've run a cron job to delete files and then run zmaudit to purge the database. I was thinking theirs might be a better way to do this.

Posted: Wed May 26, 2004 10:11 pm
by victor_diago
hi.

Yes, its easy to make it start, just put "zmpkg.pl start" in your rc.local or any other startup script.

about deleting old files, i have posted a script called autoclean that do this, but im actually REWRITTING it to be faster.

there is a better way, just using mysql and deleting not the files and directories itself, but deleting data records in the database. you can do that by using a LIKE with SELECT.

i will release the new version in a few days, but you can use my old script while wait.

victor diago

Posted: Wed May 26, 2004 10:54 pm
by davide
from version 1.19.2 there is the possibility to use filters to auto-delete old events, see http://www.zoneminder.com/index.php?id= ... tt_news=29

howtos:
http://www.zoneminder.com/forums/viewto ... gewhenfull
http://www.zoneminder.com/forums/viewto ... gewhenfull

davide,

Posted: Wed May 26, 2004 11:28 pm
by victor_diago
this is really a good thing, but when you use that you say : when disk usage is 99 % then flash old events.

this is ok, but in 120 GB Disks, 1 % of storage is 1.2 GB, a GOOD amount of disk.

my script will let you to set "clean events when disk free amount is less than X MB"

i think this is preferable.

victor diago

Posted: Thu May 27, 2004 11:24 am
by zoneminder
Just as additional data point, the ZM filter can be on percentage or disk blocks (as per df) if you want finer granularity.

Phil,