How to delete a specific footage from a NX server (immediately)?
AnsweredI need to delete recorded footage from Nx server at some intervals due to security polices and operational convenience.
My situation is very similar to the following post (but not Nx1):
https://support.networkoptix.com/hc/en-us/community/posts/115008369068-Remove-record-files-of-NX1
Currently I delete recordings by setting the archive length in a camera setting page from auto to 1 day min/max as a work around. With this method, however, I cannot remove footage which is recorded within 24 hours.
Is there anybody who knows how to delete footage immediately (using APIs or SDK or whatever)?
-
If you can search for the first and last (chronological) directories you want to delete, then you can use find:
find . -newer first -not -newer last -type d
And if the output suits you, go for the delete
find . -newer first -not -newer last -type d -print0 | xargs -0 rmdir
or with explicit date stamps:
find . -newermt "2010-03-31 0300" -not -newermt "2010-03-31 0310" -type d
0 -
Hi Norman,
Thank you for your helpful answer!
The way which you suggested results in archive database corruption. To fix it, we need to perform "Rebuild Archive Index." However, I am afraid whether this operation is acceptable or not in a production environment in terms of sever workload and robustness.
Any idea?
0 -
Hi Tomoaki,
Unfortunately, I do not have a suggestion for a better workflow in this situation.
In general surveillance systems are made to record data, not to remove data. ;-)1
Please sign in to leave a comment.
Comments
3 comments