SVN config and backup code
authorAlex Dehnert <adehnert@mit.edu>
Mon, 1 Mar 2010 01:05:41 +0000 (01:05 +0000)
committerroot <root@masada.mit.edu>
Mon, 1 Mar 2010 01:05:41 +0000 (01:05 +0000)
authz.conf [new file with mode: 0644]
dumper [new file with mode: 0644]
loader [new file with mode: 0644]
svngroups [new file with mode: 0644]

diff --git a/authz.conf b/authz.conf
new file mode 100644 (file)
index 0000000..06d9921
--- /dev/null
@@ -0,0 +1,47 @@
+[groups]
+valid-alex = alex
+programs-sync = alex, alex-mit
+website-access = katherine, alex
+blog-dev = katherine, alex
+sisugames = ekrasner, caster
+mathcamp = alex, mc-yearbook, tomsnell, davidbenjamin, andrewgeng, leonid, jdg
+monopoly = alex, wkoven, klouie, mlitvin
+phillipian = alex, amukherjee, fpinto, newspa, cjackson
+troop57 = alex
+capybara = alex, davidben, jaysonl, ahaven
+
+[troop57:/]
+@valid-alex     = rw
+
+[website:/]
+@valid-alex     = rw
+@website-access = r
+
+#[website:/branches/testing/blog/]
+# Give Katherine access
+katherine       = rw
+#@blog-dev = rw
+#katherine = rw
+
+[sisugames:/]
+@sisugames      = rw
+@valid-alex     = rw
+
+[mathcamp:/]
+@mathcamp = rw
+
+[program:/]
+@valid-alex     = rw
+@programs-sync  = r
+
+[phillipian:/]
+@phillipian = rw
+
+[troop57:/]
+@troop57 = rw
+
+[monopoly:/]
+@monopoly = rw
+
+[crazed-capybara-cabal:/]
+@capybara = rw
diff --git a/dumper b/dumper
new file mode 100644 (file)
index 0000000..9f991d5
--- /dev/null
+++ b/dumper
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+function f
+{
+        echo $@ >&2; $@
+}
+date=$(date +%Y-%m-%d)
+
+mkdir -p dump/$date/
+for repos in mathcamp phillipian sisugames alex/transfer alex/website alex/program monopoly
+    do f svnadmin dump $repos > dump/$date/$(basename $repos).dump;
+done
diff --git a/loader b/loader
new file mode 100644 (file)
index 0000000..7c7a2bf
--- /dev/null
+++ b/loader
@@ -0,0 +1,11 @@
+function f { echo $@; $@; }
+
+for repos in mathcamp phillipian sisugames alex/transfer alex/website alex/program monopoly; 
+    do echo
+    echo repos is $repos
+    f rm -r $repos
+    f sudo svnadmin create $repos
+    f sudo svnadmin load $repos < dump/`basename $repos`.dump
+    f sudo chgrp -R www-data $repos
+    f sudo chmod -R g+w $repos
+done
diff --git a/svngroups b/svngroups
new file mode 100644 (file)
index 0000000..f7b5653
--- /dev/null
+++ b/svngroups
@@ -0,0 +1,3 @@
+valid-alex: alex
+website-access: alex katherine
+phillipian: fpinto alex newspa tsmyth