From 12e62af5c29cdb293ea3cf0c357be84f16ba4462 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 15 Nov 2015 08:11:11 -0700 Subject: fix athena URLs in coldbkup to work with gitbk() Otherwise the folder names on the backup medium are wrong and git gives strange errors like this: error: internal error: refs/heads/master is not a valid packed reference! --- bin/coldbkup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/coldbkup b/bin/coldbkup index 993dab5c..00f7aeec 100755 --- a/bin/coldbkup +++ b/bin/coldbkup @@ -72,9 +72,9 @@ for repo in $repos; do status processing $repo from athena if [ "$repo" = "priv.git" -o "$repo" = "annex.git" -o "$repo" = "rt.git" ]; then # might need a ssh:// and a /~/ in here to work with gcrypt - gitbk gcrypt::git@spwhitton.name:${repo%.*} $DEST/athena + gitbk gcrypt::git@spwhitton.name:/home/git/$repo $DEST/athena else - gitbk git@spwhitton.name:${repo%.*} $DEST/athena + gitbk git@spwhitton.name:/home/git/$repo $DEST/athena fi done -- cgit v1.2.3