summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-11-15 08:00:43 -0700
committerSean Whitton <spwhitton@spwhitton.name>2015-11-15 08:00:43 -0700
commit47f0d79a2a2660f68fa175719fa2d4298603cb3a (patch)
tree7a6991e99faa4faa9d37364c46f4c38aad469c4c
parente68ad3b090c0e50814d806fb669d280a5c78ee7d (diff)
downloaddotfiles-47f0d79a2a2660f68fa175719fa2d4298603cb3a.tar.gz
update coldbkup
-rwxr-xr-xbin/coldbkup21
1 files changed, 15 insertions, 6 deletions
diff --git a/bin/coldbkup b/bin/coldbkup
index c69eb661..f6e5be2a 100755
--- a/bin/coldbkup
+++ b/bin/coldbkup
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# backup to removable, offline media
@@ -63,16 +63,25 @@ for repo in $repos; do
fi
done
+# Stage 1.5 : Backup repos hosted on athena
+
+# TODO: don't use ls here (see http://mywiki.wooledge.org/ParsingLs)
+
+repos=$(ssh athena ls /home/git)
+for repo in $repos; do
+ status processing $repo from athena
+ if [ "$repo" = "priv.git" -o "$repo" = "annex.git" -o "$repo" = "rt.git" ]; then
+ gitbk gcrypt::git@spwhitton.name:${repo%.*} $DEST/athena
+ else
+ gitbk git@spwhitton.name:${repo%.*} $DEST/athena
+ fi
+done
+
# Stage 2 : Backup some repos hosted on github (the ones I care about).
# TODO: consider using joeyh's github-backup program
-githubbk spwhitton/dotfiles.git
githubbk spwhitton/propellor.git
-githubbk spwhitton/sariulclocks.git
-githubbk spwhitton/srem.git
-githubbk spwhitton/oso2pdf.git
-githubbk spwhitton/pandoc-citeproc-preamble.git
# Stage 3 : Backup other repos ad hoc