Hi
I am new Zoneminder user. I'm sorry but my english is very bad.
I have simple question abaut events in ZM.
Are eldest events automattically delete when my disk with var catalog is full ??
Can I make that they will be deleted for example when disk is 90% full ??
Best regards
Adam Pilat
automically old event delete ??
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
First the events are deleted from the database, and then some while later the images are cleaned off disk.
The other place ZM may be consuming diskspace is with its log files, so it's a good idea to rotate them from time to time. I use "logrotate" with a script like this:
The other place ZM may be consuming diskspace is with its log files, so it's a good idea to rotate them from time to time. I use "logrotate" with a script like this:
Code: Select all
/var/log/zone/*.log {
missingok
rotate 7
weekly
compress
nocreate
nomail
notifempty
sharedscripts
prerotate
/etc/init.d/zoneminder stop > /dev/null
endscript
postrotate
(sleep 30; /etc/init.d/zoneminder start) > /dev/null
endscript
}
Rick Hewett