#! /usr/bin/perl -w my $REPO_DIR = '/data/svn/repos' ; use strict ; use Repocafe ; my $prog = substr($0,rindex($0,'/')+1) ; my $Usage = < ; chop $rev ; close LOOK ; Error "$SRC_REPO is at revision $rev (should be 0)" unless $rev eq "0" ; my $DUMP = sprintf 'svnadmin dump %s | gzip -c -v > %s', $SRC, $DMP ; printf "%s dump : %s\n", $TAG, $DUMP ; system $DUMP if $opt{f} ; my $LOAD = sprintf "zcat %s | su apache -c 'svnadmin load %s'", $DMP, $DST ; printf "%s load : %s\n", $TAG, $LOAD ; system $LOAD if $opt{f} ;