Some attemps have been already done (see here or here).
find a generic way , to dump all (or a given list) of etypes. (pay attention to the volume of the data, it can be big).
related !118