2 # this handler will backup subversion repostitories.
5 getconf src /var/lib/svn
6 getconf dest /var/backups/svn
7 getconf tmp /var/backups/svn.tmp
8 getconf HOTBACKUP /usr/lib/subversion/hot-backup.py
12 for repo in `find . -name svnserve.conf`
17 ret=`mkdir -p $tmp/$repo 2>&1`
22 if [ $code != 0 ]; then
23 error "command failed mkdir -p $tmp/$repo"
26 ret=`$HOTBACKUP $src/$repo $tmp/$repo 2>&1`
31 if [ $code != 0 ]; then
32 error "command failed -- $HOTBACKUP $src/$repo $tmp/$repo"
38 echo "Error: because of earlier errors, we are leaving svn backups in $tmp instead of $dest"
40 if [ -d $dest -a -d $tmp ]; then