zmrecover.pl − ZoneMinder event file system and database recovery checker
zmrecover.pl [−r,−report|−i,−interactive]
This script checks for consistency between the event filesystem and the database. If events are found in one and not the other they are deleted (optionally). Additionally any monitor event directories that do not correspond to a database monitor are similarly disposed of. However monitors in the database that don’t have a directory are left alone as this is valid if they are newly created and have no events yet.
−i,
−−interactive − Ask before applying any
changes
−m, −−monitor_id − Only consider the
given monitor
−r, −−report − Just report don't
actually do anything
−s, −−storage_id − Specify a storage
area to recover instead of all
−v, −−version − Print the installed
version of ZoneMinder
ZoneMinder Recover Script Copyright (C) 2018 ZoneMinder LLC
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110−1301 USA.