My database has 3 tables: table1, table2 and table3
I would like to do a mysqldump on this database with the following conditions:
You can remove the INSERT INTO ... part:
INSERT INTO ...
mysqldump \ --opt \ -u ${DB_USER} -p${DB_PASS} \ ${DB_NAME} \ | grep -v 'INSERT INTO `table3`' \ | grep -v 'INSERT INTO `table4`'