salix/db/export-structure.sh

29 lines
408 B
Bash
Executable File

#!/bin/bash
SCHEMAS=(
account
bi
bs
cache
edi
hedera
nst
pbx
postgresql
salix
stock
util
vn
vncontrol
)
mysqldump \
--defaults-file=config.production.ini \
--default-character-set=utf8 \
--column-statistics=0 \
--no-data --comments \
--triggers --routines --events \
--databases \
${SCHEMAS[@]} \
> dump/structure.sql