title: (Ruby) How to dump a database?
body: <p>I want to do a database dump through Ruby scripting, but I didn't find any class or script for do that.</p>
  
  <p>Ideally the dump should work for MySQL, PostgreSQL, SQLite, etc. (at least MySql and Pg). I tried with DBI but I can't.</p>
  
  <p>Other way is doing table for table ... D:</p>
  
  <p><strong>Edit 1:</strong>
  It's only for backup, no restore.
  For now I have troubles with hostings, because I need to ask for permits to my IP, so I will try with SSH.</p>