Page 1 of 1

How does PurgeWhenFull work?

Posted: Tue Mar 16, 2021 5:47 pm
by pennyzm
Hello,

I need some help to understand filter PurgeWhenFull.
- We are currently running Zoneminder 1.34.2 on Ubuntu 18.04.4 LTS.
- We have a storage space called storage1 where all the events are recorded to.
- The storage1 space is currently sitting at 90%.

Does PurgeWhenFull remove events starting from oldest events?
Do we need to explicitly tell it which storage area to remove events from?
Our goal is to purge anything older than 3 months.

Kind regards,
pennyzm

Re: How does PurgeWhenFull work?

Posted: Tue Mar 16, 2021 8:34 pm
by pennyzm
I'm still trying to find answers to the storage question, but I've found that PurgeWhenFull deletes starting with oldest.
The filter is set to "Sort by Id Asc".

Re: How does PurgeWhenFull work?

Posted: Tue Mar 16, 2021 8:47 pm
by pennyzm
I think I know how to do the purge for events older than 30 days.
"Archive status equal to Unarchived Only"
"Start Date/Time greater than 90"

Does the 90 automatically default to days?
What is the difference between say that and "Start Date/Time less than -90"?
When I run the filter just to see what is listed I get the same thing whether I use less than -90 or greater than 90.

Re: How does PurgeWhenFull work?

Posted: Wed Mar 17, 2021 7:53 pm
by Andyrh
The purge when full filter defines what is deleted and from where.

I think this thread will help.
viewtopic.php?f=40&t=30516

Re: How does PurgeWhenFull work?

Posted: Fri Mar 19, 2021 2:11 pm
by pennyzm
Thank you very much @Andyrh, that was a helpful link.
I've edited the purgewhenfull filter to include the location of the storage area, but when I click "List Matches" it gives me 0 events.

I tested this by setting the disk percent to 90 since the storage area is at 91% now.
I'll keep researching to figure this out, but if you have any more suggestions please help if you can.

Thank you

Re: How does PurgeWhenFull work?

Posted: Fri Mar 19, 2021 2:56 pm
by pennyzm
@Andyrh,

Thank you again for the link. It's now working. I just had to adjust the order of how things were listed such as:
storage area equal to storage1
archive status equal to unarchived only
disk percent greater than or equal to 95
sort by id asc limit to first 1000

The issue I had before was when I would select storage area 3rd on the list it would not give me a drop down to select it and it would not take a manual entry.
I've created a separate purgewhenfull for the storage1 and tested it by setting the disk percent to 90 and clicking "list matches" and I get the first 1000 events.

Again, thank you