X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fsvn;h=4dca225172cce1f6b30825221d0529c7fd8192e6;hb=01414dc2d568fbb0e0eb0096d6cb60965a8366c6;hp=cd3cc2e99983350fba18a5436d53e2169a938c18;hpb=1e410a6d9574c56b7d3a3633b82220eacf782d06;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/svn b/handlers/svn index cd3cc2e..4dca225 100644 --- a/handlers/svn +++ b/handlers/svn @@ -5,14 +5,14 @@ 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 # If vservers are configured, decide if the handler should # use them or if it should just operate on the host -if [ "$VSERVERS" = "yes" ] +if [ "$vservers" = "yes" ] then if [ ! -z $vsname ] then @@ -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