#!/bin/bash DUMPED_FILE="dump/dumpedFixtures.sql" INI_FILE="config.production.ini" dump_tables() { SCHEMA=$1 echo "USE \`$SCHEMA\`;" >> "$DUMPED_FILE" mysqldump --defaults-file="$INI_FILE" --no-create-info --skip-triggers $@ >> "$DUMPED_FILE" } echo "" > "$DUMPED_FILE" TABLES=( util config version versionLog ) dump_tables ${TABLES[@]} TABLES=( account role roleInherit roleRole userPassword accountConfig mailConfig ) dump_tables ${TABLES[@]} TABLES=( salix ACL fieldAcl module defaultViewConfig ) dump_tables ${TABLES[@]} TABLES=( vn agencyTermConfig alertLevel bookingPlanner businessType siiTypeInvoiceIn siiTypeInvoiceOut cplusRectificationType cplusSubjectOp cplusTaxBreak siiTrascendencyInvoiceIn claimResponsible claimReason claimRedelivery claimResult component componentType continent department docuware itemPackingType pgc sample state ticketUpdateAction volumeConfig workCenter companyI18n workerTimeControlError silexACL ) dump_tables ${TABLES[@]} TABLES=( cache cache ) dump_tables ${TABLES[@]} TABLES=( hedera browser imageCollection imageCollectionSize language link location menu message metatag newsTag restPriv social tpvError tpvResponse ) dump_tables ${TABLES[@]} TABLES=( sage TiposIva TiposTransacciones TiposRetencion taxType ) dump_tables ${TABLES[@]}