Thu Sep 7 09:27:29 PDT 2006
- Previous message: [Slony1-commit] By xfade: fix warning: deprecated use of label at end of compound
- Next message: [Slony1-commit] By xfade: Correct example.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Add a script to help download Slony-I email archives from gBorg as
backup
Added Files:
-----------
slony1-engine/tools:
pull-gborg-mail.sh (r1.1)
-------------- next part --------------
--- /dev/null
+++ tools/pull-gborg-mail.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+# $Id: pull-gborg-mail.sh,v 1.1 2006/09/07 16:27:28 cbbrowne Exp $
+# This script downloads email archives from gBorg
+# Parameters:
+# 1. If need be, change ARCHHOME to be some more suitable location for mailing list archives
+# 2. Optional single argument: INIT
+#
+# If you run "bash pull-gborg-mail.sh INIT", it will go through
+# all the years of the Slony-I project at gBorg, and download
+# each month's file.
+#
+# If you pass no value, it will pull the current month's email
+# archives, overwriting the existing copies.
+
+ARCHHOME=$HOME/Slony-I/MailingListArchives
+
+ARG=$1
+
+if [[ x$ARG == "xINIT" ]] ; then
+ for year in 2004 2005 2006; do
+ for month in January February March April May June July August September October November December; do
+ for arch in commit general; do
+ DIR=${ARCHHOME}/${arch}
+ mkdir -p $DIR
+ wget -O $DIR/${year}-${month}.txt http://gborg.postgresql.org/pipermail/slony1-${arch}/${year}-${month}.txt
+ done
+ done
+ done
+else
+ for year in `date +"%Y"`; do
+ for month in `date +"%B"`; do
+ for arch in commit general; do
+ DIR=${ARCHHOME}/${arch}
+ mkdir -p $DIR
+ wget -O $DIR/${year}-${month}.txt http://gborg.postgresql.org/pipermail/slony1-${arch}/${year}-${month}.txt
+ done
+ done
+ done
+fi
\ No newline at end of file
- Previous message: [Slony1-commit] By xfade: fix warning: deprecated use of label at end of compound
- Next message: [Slony1-commit] By xfade: Correct example.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list