From ba523b39f9d7108ce1f39b98d7f380fdcd807d8a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 7 Jun 2003 11:40:31 +0000 Subject: [PATCH] svn-backup: Compress dumpfiles with bzip2. Exit silently if a dumpfile already exists for this revision. Use "new" 'svnadmin dump' revision syntax (subversion r3258, not exactly recent; oh well). Use --quiet option to 'svnadmin dump', added in subversion r4912. --- svn-backup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/svn-backup b/svn-backup index c05dd04..918c860 100755 --- a/svn-backup +++ b/svn-backup @@ -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 -- 2.30.2