X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsvn;h=9a611c0f1233d90125c214a5090e02c20002693c;hb=0e1bd269884c234dd76b00fa30bae674e82892bf;hp=551255b943038d6226b95a97f6735a3b978541f5;hpb=d52a1ac97e97c51c15ccd52d7dce93d3a092e636;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/svn b/handlers/svn index 551255b..9a611c0 100644 --- a/handlers/svn +++ b/handlers/svn @@ -5,7 +5,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 @@ -23,11 +23,16 @@ then fi fi -# Check to make sure that the specified vserver exists +# If needed, make sure that the specified vserver exists and is running. if [ $usevserver ] then + info "examining vserver '$vsname'" + # does it exist ? vroot="$VROOTDIR/$vsname" [ -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." fi cd $vroot$src