dbmasher is a tool for dumping and restoring the contents of relational database, including both the schema and the data.
The dumped schema and data is stored in a RDBMS agnostic way by default, but can be specifically requested in a format suitable for one of the several popular RDBMS supported.