From: Wolfram Schneider Date: Tue, 6 Apr 2010 15:36:13 +0000 (+0000) Subject: add a dump target for doing a full dump of the IRSpy database as tarball X-Git-Tag: CPAN-v1.02~148^2~41 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=d6e6c56554c1d926e330e90058027738ea510f99;p=irspy-moved-to-github.git add a dump target for doing a full dump of the IRSpy database as tarball --- 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