mysqldump --compatible=postgresql --default-character-set=utf8 -u root -p tasks > export.sql
wget https://raw.github.com/lanyrd/mysql-postgresql-converter/master/db_converter.py
chmod +rx db_converter.py
python db_converter.py export.mysql import.psql
sudo -u postgres psql tasks < import.psql