我这备份的方式是直接打包csvn目录


#!/bin/sh

Time=`date +"%Y%m%d"`

Documentation=/opt/

Local=/opt/bak/local/svn

cd $Documentation

zip -r csvn_$Time.zip csvn > /opt/bak/svnlog.txt

mv csvn_$Time.zip $Local