Rake task for backing up MySQL database

It is often a good idea to do backups, right? ActiveRecord doesn’t provide a straight task to do them, so I have written a small rake task to achieve that. This task automatically cleans up old backups. Additionally, it offers two additional variables to define max number of backups left and the directory name to [...]

Running Redmine under unicorn in Debian

This post explains how to set up Redmine – the packaged version in Debian, to be hosted by Unicorn server and to use apache load balancing module. This is a faster alternative to running Redmine with mod_passenger.

Deleting duplicate records in MySQL

Sometimes you have multiple records where the same data spans across multiple columns in the table and you’d like to clean up that mess by leaving only one copy per unique set of records.

RVM, Passenger 3, REE, Rails3 in a Debian

This post explains how to install a global RVM (Ruby Version Manager) with Passenger 3 gem, Ruby Enterprise Edition in a Debian server machine for all users.