#! /usr/bin/env bash # backs up all svn repositories which are sub directories of sourceDir # into targetDir VERSION=1.0.0 sourceDir=/var/lib/svn/ targetDir=/home/dbbackup/svnbackup for repository in `ls $sourceDir` ; do [ -d $targetDir/$repository ] || mkdir -p $targetDir/$repository ; svn-backup-dumps -bO $sourceDir/$repository $targetDir/$repository ; done