Installing Redmine on a Media Temple (dv) server

Redmine is a great project management web application, which is pretty easy to set up if you have experiences with Ruby on Rails applications.

This is a guide on how to instal Redmine on the MediaTemple (dv) line of servers using CentOS 5, Apache and Phusion Passenger.

How to dump all MySQL databases into separate files

Sometimes we need to to dump all databases form a MySQL server. This can be done using the mysqldump utility with the --all-databases switch enabled. In this case mysqldump will dump all databases to the standard output or to a file if explicitly specified. Let’s assume a situation where we want to backup all of the databases from the server, with the possibility to restore only one database at a time. To achieve this, you need to dump all the databases one by one or to use a pre-made script to do the heavylifting for you.