Starting and Cleanup....

Support and queries relating to all previous versions of ZoneMinder
Locked
yosco
Posts: 44
Joined: Mon Dec 22, 2003 8:28 pm

Starting and Cleanup....

Post 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.
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post 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
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post 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,
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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,
Locked