Rake task to backup and restore database
===

I am working on a Rails project, and sometimes I program at home and sometimes at work. In my development process, I add data to the database, and I really need a way to synchronize the databases at home and work.
 
I am thinking about a Rake task to backup/restore the whole database in a Rails app.  
Is there anyway to do that?