[geany/infrastructure] 614978: Add scripts to backup all non-repository data from Github

Enrico Tröger git-noreply at xxxxx
Fri Oct 16 13:22:41 UTC 2015


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Fri, 16 Oct 2015 13:22:41 UTC
Commit:      6149781705e146ae2f47877a705592f062dd5fd3
             https://github.com/geany/infrastructure/commit/6149781705e146ae2f47877a705592f062dd5fd3

Log Message:
-----------
Add scripts to backup all non-repository data from Github


Modified Paths:
--------------
    github-backup/backup.sh
    github-backup/create_or_update_virtualenv.sh

Modified: github-backup/backup.sh
22 lines changed, 22 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# backup almost everything from Github except the GIT repositories itself as we have git.geany.org
+
+# read the token
+. /home/geany/.github-token
+
+# start the backup
+/home/geany/github-backup/venv/bin/github-backup \
+    --token "${GITHUB_TOKEN}" \
+    --issues \
+    --issue-comments \
+    --issue-events \
+    --pulls \
+    --pull-comments \
+    --pull-commits \
+    --wikis \
+    --labels \
+    --organization \
+    --milestones \
+    --output-directory=/home/geany/github-backup
+    geany


Modified: github-backup/create_or_update_virtualenv.sh
16 lines changed, 16 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# initial setup of the Python virtualenv for github-backup (github.com/josegonzalez/python-github-backup)
+# or just update it if it already exists
+
+BASE_DIR="/home/geany/github-backup"
+mkdir -p "${BASE_DIR}"
+cd "${BASE_DIR}"
+if [ ! -d "${BASE_DIR}/venv" ]; then
+	virtualenv venv
+fi
+
+# update
+venv/bin/pip install -U pip setuptools
+venv/bin/pip install -U "git+git://github.com/eht16/yolk#egg=yolk"
+venv/bin/pip install -U "git+git://github.com/josegonzalez/python-github-backup.git#egg=github-backup"



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list