Page 1 of 1

cleanup of /var/cache/zoneminder/events

Posted: Tue Jul 14, 2020 3:04 am
by shu246
Running ZM 1.34.16 on Debian 10 Buster. Steep learning curve. Have abt 8 cameras defined, most running in Function: Monitor. Starting to tinker with Record.

In /var/cache/zoneminder/events there are 8 directories (e,g ../events/1, ..events/3, etc). Most are empty. These may be relics of an original or default numbering scheme for Monitors (cameras).

There are also 20 link directories. These seem to link to the numbered directories. These link directories have names of presently defined cameras, or of now deprecated and abandoned camera Names.

I would like to clean out ../zoneminder/events, particularly directories with orphaned camera names. There is nothing there of value. All files are owned by www-data. I am not much familiar with SQL type databases; just invokng sudo to rm them seems ill advised.

Is there guidance available about clearing out this dross? Thank you - Shu

Re: cleanup of /var/cache/zoneminder/events

Posted: Fri Jul 17, 2020 1:23 am
by burger
Look through the DB if you are worried about existing records. But it shouldn't hurt anything to just rmdir

https://wiki.zoneminder.com/MySQL

Make a backup of the DB beforehand and you can restore should something go wrong.

Re: cleanup of /var/cache/zoneminder/events

Posted: Sat Jul 18, 2020 2:57 pm
by shu246
Thanks. Just needed a little push. Digging in to get at least minimally acquainted with MariaDB.
- Shu