Mysql Table Dump

UPDATE: See updated code on github:
I had the need once again to dump only certain tables from a database, instead of all 100+ tables. This was where I had a database with about 5-8 wordpress installs. I wanted to backup all of the tables for only one install. There is a way with mysqldump to do this, by listing out all of the tables you want to dump. So I just wrote a bash script to take care of making the list of tables to dump.

Here it is for anyone’s use. Let me know if it’s useful or if you have any changes or improvements.

Updated August 3, 2010

Leave a Reply

Your email address will not be published. Required fields are marked *