Here is my little script for `incremental’ dump svn revision trees. The script just check every svn repositories which located at /home/svn, and save it in /home/backup by versions.
#!/bin/sh for dir in /home/svn/* ; do name=$(basename ${dir}) version=$(svnlook youngest ${dir}) for ((r=1;r<${version};r++)) ; do if [ ! -f "/home/backup/${name}-$r.gz" ] ; then svnadmin dump ${dir} -r $r --incremental | \ gzip -9> /home/backup/${name}-$r.gz fi done done
Have fun! This is a tip.