cleanup of /var/cache/zoneminder/events

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
shu246
Posts: 6
Joined: Wed Aug 07, 2019 9:01 pm

cleanup of /var/cache/zoneminder/events

Post 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
User avatar
burger
Posts: 476
Joined: Mon May 11, 2020 4:32 pm

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

Post 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.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
shu246
Posts: 6
Joined: Wed Aug 07, 2019 9:01 pm

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

Post by shu246 »

Thanks. Just needed a little push. Digging in to get at least minimally acquainted with MariaDB.
- Shu
Post Reply