From 34b43e8c0dc3274d64e34622ffeeb38b391becf6 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 6 Apr 2010 15:36:13 +0000 Subject: [PATCH] add a dump target for doing a full dump of the IRSpy database as tarball --- zebra/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zebra/Makefile b/zebra/Makefile index 09602b3..82dc733 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -2,6 +2,8 @@ IRSPY_ARCHIVE= records-2007-05-01 IRSPY_ARCHIVE_EXT= .tar.gz +DATE:= $(shell date '+%Y-%m-%d') + all: help @@ -18,6 +20,13 @@ newdb: zebraidx-2.0 update ${IRSPY_ARCHIVE} zebraidx-2.0 commit +dump: + rm -rf records-${DATE}.old + -test -e records-${DATE} && mv records-${DATE} records-${DATE}.old + mkdir records-${DATE} + cd records-${DATE} && ../../bin/irspy-dump.pl irspy.indexdata.com:8018/IR-Explain---1 + tar cfz records-${DATE} records-${DATE} + clean: rm -f terse.properties -- 1.7.10.4