Today, I started working from the morning 🙂 . For Yaat(the Annotation Tool), I made up a small website. I thought about installing trac [from edgewall.org] .
What is trac ? Why trac? Many websites which use svn for maintaining their code are using trac to host their sites.
Trac is a web-based software project management and bug/issue tracking system emphasizing ease of use and low ceremony. It provides an integrated Wiki, an interface to version control systems, and a number convenient ways to stay on top of events and changes within a project.
I will keep it simple. http://trac.wordpress.org/ . One of the most popular open-source projects (wordpress) uses trac.
It took me a little bit of time for installing it. Had some problem with mysql with Trac ( installed v.0.10.4 ). Finally shifted to sqlite.
Now, its the time for configuring the webserver. As trac is written in python and by default, Apache does not have either mod_python module or Fast CGI installed(OS Specific) . I could not find the required rpms (rpm is the package manager for RedHat based OSes).
Installed mod_python and a little bit of configuration and viola ! its done ! The bad part is , a lot of time got wasted in searching for the rpms 😦 .
Now the svn repository . I had a repository in my old machine which contains some projects out of which yaat was one of them.
The problem now: One repos, require backup of 1particular project out of 8. Searched up in the svn redbook. But , turned out unlucky 😦 . There were only articles about how to take incremental backups and dump them back. After a little more googling , ended up lucky. This is the code snippet for creating a new repos from the old one along with the filter for filtering out based on the project name 🙂 . svn rocks 😀 .
svnadmin create newrepos –fs-type fsfs
svnadmin dump repos | svndumpfilter include yaat | svnadmin load newrepos
If you dont give the fs type as fsfs, you may face some problem when hosting the site on trac. ( I got that problem, so I am not sure about it ).
`yaat` was my project name, repos was the old repository and newrepos is my new repository . Actually `yaat` here meant it searches(greps) for `yaat` in the list . And tadaaa. the porting of the projects done ! . But almost a day got eaten up because of this ! 😦 . Anyways if I want to install it again , I will end up facing less no.of problems than I had earlier 😉 .