svnbackup
SVN Backup Script
This project is now hosted on code.google.com. Please report bugs and submit patches using the tracker there. Thanks!
This script dumps a subversion repository to a series of compressed
files. It uses a local file to remember the last changeset dumped so
the script can be used to generate files for backups.
Bug Reports and Source Code
http://code.google.com/p/svnautobackup/
Current Version: 1.8
Released: Sun Apr 26 09:33:38 2009
Download version
1.8
Related Links
- svnbackup-restore.rb, svnbackup's handy companion tool at Al Hoang (2008-10-18)
- svnbackup 1.6 (2008-07-20)
- Adam Crews provided a patch to svnbackup.sh that adds an option to let the user control the base name of dump files. I've rolled up the changes in release 1.6, available for download from the project home page. ...
- svnbackup 1.5 (2008-07-07)
- Matthew McDonald contributed a patch to let svnbackup work on repositories with spaces in the name. I also added a --compress option so users can choose between gzip and bzip2 (the default is still bzip2). ...
- svnbackup news (2008-06-22)
- I've received several patches for svnbackup.sh recently, and an offer to host an RPM version of the code. I decided it probably made sense to go ahead and open the project up to contributors, so I created a project on code.google.com. ...
- Davids blogg: Checklista: backup av en rails-applikation (2007-11-21)
- Unexpectedly broken, and fixed: svnbackup (2007-09-03)
- Yesterday Pierre Lemay sent me one of the clearest bug reports I've seen in quite a while, and a patch to fix the problem. He was having trouble with svnbackup duplicating changesets in the dump files. It turns out every changeset that appeared on a "boundary" (at the end of one dump file and the beginning of the next) was included in both dumps. Oops.
When I tested the script, I was able to recover the repository without any trouble. I didn't check 2 cases that Pierre encountered. First, the changeset revision numbers did not stay consistent. When the changeset was duplicated, that threw off all of the subsequent changeset idhttp://www.blogger.com/img/gl.link.gifs by 1. For each duplicate. That in itself is only annoying. The more troubling problem is when a duplicate changeset includes a delete operation. The second delete would fail while restoring, which prevented Pierre from importing the rest of the backup.
In his email describing all of that, he gave me great details about how he had tested, the specific scenario that caused the problem, and then provided the fix!
So, if you are using version 1.0, go on over and download version 1.1 with Pierre's fixes.
- Unexpectedly Popular: svnbackup (2007-07-15)
- My svnbackup script is the 2nd most popular page on my site, after the PyMOTW home page, and search terms such as "svn backup" and "svn backup script" regularly appear at the top of the list of sources of traffic to my site. The link to svnbackup doesn't appear on the first page of Google's search results, a sign I take to mean that this problem isn't well understood or solved (otherwise, why would so many people page through the search results to find it?).
