A database copy snippet for capistrano by releu
With #capistrano you can do a lot of useful things.
For example, here is my task for making a copy of production db to local with #yaml_db gem: More under the cut
Painless migration database data to new db type by releu
If your db is not very big or if you have enough time to migrate your database you can use #yaml_db #gem.
It copies your db columns data to the simple #yaml file and load it to new db. how it works