chiark / gitweb /
testing-blockages: Script from Anthony Towns to print a brief analysis of
[bin.git] / svn-backup
index c05dd045d29468bbf2ea11a33b21e6b80c52cdb8..918c860ab888a6aeede0c40ca4015d162e587633 100755 (executable)
@@ -22,6 +22,11 @@ if [ "`expr "$REV" : '[0-9]\+'`" -eq 0 ]; then
     exit 1
 fi
 
-$SVNADMIN dump "$REPOS" 0 "$REV" > "$DUMP.$REV"
+if [ -f "$DUMP.$REV" ] || [ -f "$DUMP.$REV.bz2" ]; then
+    exit 0
+else
+    $SVNADMIN dump --quiet "$REPOS" -r 0:"$REV" > "$DUMP.$REV"
+    bzip2 "$DUMP.$REV"
+fi
 
 exit 0