X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsvn;h=26afafde504e4da30cf97b92d2a2c5cc7e405fcb;hb=0d606253af6ecb8ede07b0991a1f295fb70e7e65;hp=6ac54029547665829ba01b09ccbd47a19e18d784;hpb=cf1817d075b934aeab77d7bf10da3bf886b034ae;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/svn b/handlers/svn index 6ac5402..26afafd 100644 --- a/handlers/svn +++ b/handlers/svn @@ -1,3 +1,4 @@ +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- # # this handler will backup subversion repostitories. # @@ -5,7 +6,7 @@ getconf src /var/lib/svn getconf dest /var/backups/svn getconf tmp /var/backups/svn.tmp -getconf HOTBACKUP /usr/lib/subversion/hot-backup.py +getconf HOTBACKUP "/usr/bin/svnadmin hotcopy" getconf vsname error=0 @@ -32,7 +33,7 @@ then [ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'" # is it running ? running=`$VSERVERINFO $vsname RUNNING` - [ $running = 1 ] || fatal "vserver $vsname is not running." + [ "$running" = "1" ] || fatal "vserver $vsname is not running." fi cd $vroot$src