mysql dump is for you sir !

http://www.thegeekstuff.com/2008/09/...ing-mysqldump/