How to get the whole mysql dump from the UI

Wordpress has a utility using which the admin can take the whole mysql
dump
in a nice manner from the UI.

I was wondering if something like that is already available as a plugin
or
something. If not how do I invoke ‘mysqldump’ from the UI using the
regular
ruby code?

Thanks.