Browse Source

git-backup

master
Robin Thoni 9 years ago
commit
e485051b5d
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      git-backup

+ 12
- 0
git-backup View File

1
+#! /usr/bin/env sh
2
+
3
+while read path
4
+do
5
+  echo "Backing up ${path}..."
6
+  cd ${path} &&
7
+    (
8
+      git add -A
9
+      git commit -m "[GIT-BACKUP] $(date)"
10
+      git push origin master
11
+    )
12
+done < /etc/git-backup.conf

Loading…
Cancel
Save