Railscast: backup database before migration

The code for the db:backup task can be found in this post.