[redeclipse] 196/494: Backup/restore expansion in 05_git_workflow

Martin Werner arand-guest at moszumanska.debian.org
Sun Jun 21 20:52:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

arand-guest pushed a commit to branch debdir
in repository redeclipse.

commit a9aac2ba641d49446ec524a6d307748ac9aa7168
Author: Arand Nash <ienorand at gmail.com>
Date:   Sun May 15 21:10:20 2011 +0100

    Backup/restore expansion in 05_git_workflow
---
 05_git_workflow | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/05_git_workflow b/05_git_workflow
index 6edb249..47d6d69 100644
--- a/05_git_workflow
+++ b/05_git_workflow
@@ -40,11 +40,35 @@ for i in $(find . -iname *.png); do if [ -n "$(identify -verbose "$i" | grep 'Pr
 for i in $(git show debian:debian/unincluded_copyrights | egrep '.*\.png'); do echo mogrify -strip $i; mogrify -strip $i; done
 
 
+==BACKUP==
+
+export BACKUP_DIR="/media/seagate/utv/backup-git"
+export REPO_DIR="$HOME/utv/repository"
+
+mkdir "$BACKUP_DIR"
+cd "$BACKUP_DIR"
+git init --bare
+git clone --mirror file://"$REPO_DIR"
+cd "$REPO_DIR"
+git remote add --mirror seagate "$BACKUP_DIR"
+git push seagate
+
+
 ==BACKUP RECOVERY==
 
-git clone file:///media/seagate/utv/redeclipse-git/
+export BACKUP_DIR="/media/seagate/utv/backup-git"
+export REPO_DIR="$HOME/utv/repository"
+
+git clone file://"$BACKUP_DIR" "$REPO_DIR"
+cd "$REPO_DIR"
 for i in $(git branch -a | grep origin); do git checkout -b $(echo "$i" | sed 's#.*origin\/\(.*\)#\1#') "$i"; done
 
+# Alternatively
+git clone --mirror file://"$BACKUP_DIR" "$REPO_DIR"/.git
+cd "$REPO_DIR"
+git config --bool core.bare false                                         # (2)
+git checkout master
+
 
 ==PPA PACKAGE==
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/redeclipse.git



More information about the Pkg-games-commits mailing list