diff options
author | Britney Fransen <brfransen@gmail.com> | 2011-09-20 22:28:16 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2011-09-20 22:28:16 (GMT) |
commit | b105c311213d976f2470b21adcdafa5ed2886dcc (patch) | |
tree | 95740396eac6606cb231093953a4c7d32835256f /abs/core/zoneminder/zmeventdump | |
parent | ae5fc8a102437e1671eb2d4a53a3c999cf1e1339 (diff) | |
download | linhes_pkgbuild-b105c311213d976f2470b21adcdafa5ed2886dcc.zip linhes_pkgbuild-b105c311213d976f2470b21adcdafa5ed2886dcc.tar.gz linhes_pkgbuild-b105c311213d976f2470b21adcdafa5ed2886dcc.tar.bz2 |
zoneminder: Bump to latest. ref #770
Diffstat (limited to 'abs/core/zoneminder/zmeventdump')
-rwxr-xr-x | abs/core/zoneminder/zmeventdump | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/abs/core/zoneminder/zmeventdump b/abs/core/zoneminder/zmeventdump deleted file mode 100755 index 17087b9..0000000 --- a/abs/core/zoneminder/zmeventdump +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -#=============================================================================== -# -# FILE: eventdump.sh -# -# USAGE: ./eventdump.sh -# -# DESCRIPTION: Uses mysqldump to create a .sql file for individual zm -# events to make Event table recovery possible by doing a -# 'find' search in ZoneMinder the events directory -# -# OPTIONS: --- -# REQUIREMENTS: --- mysqldump -# BUGS: --- -# NOTES: --- -# AUTHOR: Ross Melin <rdmelin@gmail.com> -# COMPANY: -# VERSION: 1.0 -# CREATED: 03/06/2008 11:51:19 AM PST -# REVISION: --- -#=============================================================================== - -# Edit these to suit your configuration -ZM_CONFIG=/etc/zm.conf -MYSQLDUMP=/usr/bin/mysqldump -EVENTSDIR=/home/httpd/html/zm/events - -# The rest should not need editing - -# Get the mysql user and password -source $ZM_CONFIG -MYDUMPOPTS="--user=$ZM_DB_USER --password=$ZM_DB_PASS --skip-opt --compact --quick --no-create-info" - - -for tag in $(find $EVENTSDIR -amin -65 -name ".[0-9]*") - do - EVENT_PATH=$(echo $tag |cut -f 1 -d .) - EVENT_ID=$(echo $tag |cut -f 2 -d .) - # Dump the sql statements needed to reload the Events, Frames and Stats tables - - echo "-- ZM_DB_VERSION=$ZM_VERSION -" > $EVENT_PATH.sql - - $MYSQLDUMP $MYDUMPOPTS --where="Id=$EVENT_ID" zm Events >> $EVENT_PATH.sql - $MYSQLDUMP $MYDUMPOPTS --where="Eventid=$EVENT_ID" zm Frames >> $EVENT_PATH.sql - $MYSQLDUMP $MYDUMPOPTS --where="Eventid=$EVENT_ID" zm Stats >> $EVENT_PATH.sql - -done |