Wed 6 Dec 2006
Subversion Tip #2: Converting from BerkeleyDB to fsfs
Posted by dkaz under Technology, Linux
Bookmarking this…since I’m having lock problems with BerkeleyDB…
$ svnadmin create –fs-type fsfs /path/to/new/repository
$ svnadmin dump /path/to/repository | svnadmin load /path/to/new/repository
UPDATE (12/26/2006): I ended up pulling the trigger on the BerkeleyDB->FSFS conversion as I was getting absolutely sick of running the “svnadmin recover” and “db_recover” scripts. Conversion was painless - here’s the “productionalized” list of steps I followed:
1. Shut down svnserve, Apache, and anything else that might be accessing the repository.
2. svnadmin dump /path/to/repository > dumpfile.txt
3. mv /path/to/repository /path/to/saved-old-repository
5. svnadmin create –fs-type fsfs /path/to/repository
6. svnadmin load /path/to/repository < dumpfile.txt
7. Copy over hook scripts, etc, from the old repository to the new one.
8. Restart svnserve, Apache, etc.
