I would like to backup my SVN repo using tar and ftp from cronjob once a day. This is pretty simple, but I would like to make sure that there is no commit transaction at the time of the backup, etc. Although there are times of the day / night when this is unlikely, I would prefer not to rely on it, because if I am already at night in some kind of crunch, the last thing I need is my SVN or my backups, damaged .
I am looking for a very simple but effective defense. This is normal if the SVN clients receive an error while performing the backup (this does not take much time). Should i use
- something at the file system level
- some hook svn script
- something else completely
I started publishing this on serverfault, but then decided that it was a little closer to programming than sysadmin, especially if hooks were involved. Feel free to move it if you think otherwise.
source
share