Deleting files in the filesystem structure

Support and queries relating to all previous versions of ZoneMinder
Locked
jriavec
Posts: 10
Joined: Wed Apr 01, 2009 9:21 pm

Deleting files in the filesystem structure

Post by jriavec »

Hi, We just installed Zoneminder and everything went OK in the Installation, but I have create a filter in order to delete some recording in the Linux file system at night but I see that is only deleting the events in the database. What I need is to delete physically the files from the file system.

Does anybody knows how to do it using Filters?

Let say that I want to delete everything from 11 pm to 8 am, the 7 days of the week.

I will appreciate any help on this matter

Thanks in advance

Regards

Julian
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you have Option fast delete enabled then it only removes from the database.

If above is enabled then you can enable zmaudit to come along and remove files that are not in the database. It will also sync files that are removed and remove entries from the database so generally it good to have this option enabled.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

To paraphrase.

If you have FAST_DELETE enabled then all delete operations will work on the DB only. Then zmaudit will come along shortly after and clean up the files etc.

If you have FAST_DELETE disabled then files etc will be deleted at the same time as the DB entries but these deletes may take longer.
Phil
Locked