Page 1 of 1
PurgeWhenFull
Posted: Thu Nov 17, 2005 10:21 am
by julianopillati
Hello, I create one PurgeWhenFull95 for remove old events when ZM events are in 95% of usage. But when ZM go to 95% of usage all events in ZM are deleted, this is normal ? Not is possible remove only the more old events(fisrt day for example when go to in 95%), Without remove all events ? You understand what I like say ?
If is possible, how i do ? Have anyone doc exaplim how do this ?
Thank you!
Posted: Thu Nov 17, 2005 12:26 pm
by zoneminder
You need to limit the number of results to the number of events you want to delete. The included PurgeWhenFull filter should already do this.
Phil
How do this Automatically ?
Posted: Thu Nov 17, 2005 1:24 pm
by julianopillati
Is possible do this Automatically ?
For example, i have ZM with four cameras, and I go travel and come back after 3 month. I like when events use 95% disc Automatically use that filter, is possible ?
Thank you agaim!
Posted: Thu Nov 17, 2005 2:42 pm
by zoneminder
This is covered in the README and in
this FAQ entry.
Phil
Purge
Posted: Sat Dec 31, 2005 12:07 pm
by riik
Hi all,
I just installed latest version of ZM but there are no predefined filters in my filterwindow.
Something I missed?
Regards
Posted: Sat Dec 31, 2005 1:03 pm
by cordel
Unless your database didn't get loaded, it should be there.
db not loaded?
Posted: Sat Dec 31, 2005 1:25 pm
by riik
Is there something else that should not work if the database did not load, I have 5 cameras running in modect mode and events occur when they should. I can change settings in the console options window too. AreĀ“nt those variables in the database?
Regards
Rikard
Posted: Sat Dec 31, 2005 7:41 pm
by zoneminder
I don't why your filter should be missing. However it's pretty simple. You can just run the following statement in mysql
Code: Select all
insert into Filters values ('PurgeWhenFull','trms=2&obr1=&cbr1=&attr1=Archived&op1==&val1=0&cnj2=and&obr2=&cbr2=&attr2=DiskPercent&op2=>=&val2=95&sort_field=Id&sort_asc=1&limit=5',0,0,0,0,0,'');
or manually create a filter on disk space sorted by id ascending and with a limit of say 5. Then save it and check the delete box.
Phil