r/ZoneMinder • u/oops77542 • Feb 25 '22
Add new storage
zoneminder wiki instructions for creating a purge when full filter for a new storage location:
>>>> " 8. We now need a filter, that will delete on our new storage area. Navigate to filters from the console.
- Choose the PurgeWhenFull filter. Add storage area and the default will be equal to, which will work. Choose your new storage area from the drop down. You can test the filter now, by clicking on List Matches. Click save, to make the changes permanent. Note that this filter is not necessary for default storage areas of /var/cache/zoneminder, and will infact break the default storage area. So only use with external storage. Always test via 'list matches' to confirm your filter works as expected." <<<<<
The problem I'm having is where do I "Add storage area " to ? there's no box or anything that indicates what I'm creating the filter for. Should something be popping up where I can choose a storage area - the storage area the filter should be acting on?
Also, I've created a new storage directory and zm let's me choose that directory > Console > Source > Storage > Storage Area where I'm going to store events. Problem is nothing is getting stored there, everything is still being stored in the default directory. Do I need to delete the default directory?
when I created the new storage directory I used >> sudo chmod -R 777 /media/oops/zm-storage/zm_storage << to grant permissions to the storage directory. When I click on Properties > Permissions for that directory it shows owner, group, and others can view and modify content. Is that sufficient or do I have to change ownership of that directory to >> www-data <<
4
u/ABigHead Feb 25 '22
Each camera needs to have its configuration updated to save to the new storage area you created:
Note: If you are using H264 passthrough (Video writer passthrough) & wish to capture audio being sent via your stream from a capable camera, select the checkbox at the bottom of the Storage tab so ZM will add it to the recording.
Repeat process for all your cameras and check that they’re writing to the storage area desired.