ITTips
Backup all your SVN repositories
for i in `ls -1 /data/svn/`;do svnadmin dump /data/svn/$i|bzip2 >/root/svndump/svn.$i.dump.bz2; done;
To send an email for each commit
Go into your repository folder into your svn server then:
cd /data/svn/repository/hooks # replace the path by your actual path on your server
mv post-commit.tmpl post-commit
vim post-commit
Update the file in the hook folder as followed:
REPOS="$1"
REV="$2"
AUTHOR=`/usr/bin/svnlook author /data/svn/version2`
RECIP=svn.recipients@xyz.com
FROM=$AUTHOR@svn.xyz.com
SUBJ="SVN COMMIT $REPOS"
/usr/bin/svnnotify -p"$REPOS" -r"$REV" -t$RECIP -f$FROM -Dsvn.xyz.com -P"$SUBJ" -C -d --handler HTML::ColorDiff
There are no comments on this page. [Add comment]