I think you'd want something like
Code:
# svnadmin dump --incremental /home/admin/repository | gzip -c > /mnt/dumped.gz
Personally, though, I don't do that. I run a script through cron:
Code:
#!/bin/bash
NOW=`perl -e 'print time;'`
cd /var/backup/svn
mkdir $NOW
svnadmin dump /opt/repositories.svn/CC > $NOW/dumpfile.txt
tar cfpz $NOW.tgz $NOW
rm -rf $NOW
...then follow that up with another cronjob that does this:
Code:
45 3 * * * for i in `find /var/backup -type f -mtime +2` ; do rm -f $i ; done
The first cronjob does a full dump of the svn database and then zips it. (We are paranoid, we only do full dumps of databases and database-like applications.) Later on after that's complete, the nightly backup process runs and the full dump is taken as part of a daily backup to tape. The second cronjob deletes anything it finds in the /var/backup tree that's older than two days. That way I know I have two days of backups on disk, and I can restore the full database from any day I have tape for.