What is the best way to do Subversion backups (on a Debian based server).
Is it to use svnadmin?
svnadmin dump /path/to/reponame > reponame.dump
Or maybe just to tar the dir where the repositories are?
tar -cvzf svn.backup.tar.gz /var/subversion/
What are the pros and cons of the above?
Update: This is a small server with only a handful of repos. So incremental backups are probably not needed, I think it is better to focus on keeping it simple.
Update: I used packs wrapper script (that in turn was a wrapper for svn-hot-backup) to do a full backup and then did a full recovery on another clean computer. However I removed that "SVN_HOTBACKUP_NUM_BACKUPS=10" part since it was not working for me.
Please note that I feel it was kind of simple and the result was very close to just tar the dir. But as Manni pointed out here to use svn-hot-backup/"svnadmin hotcopy" is a more reliable method, since tar could create corrupt backups from time to time if you are unlucky.