salix/db/export-structure.sh

29 lines
391 B
Bash
Raw Normal View History

#!/bin/bash
2019-04-03 08:29:05 +00:00
SCHEMAS=(
account
bi
2019-04-03 09:21:54 +00:00
bs
2019-04-03 08:29:05 +00:00
cache
2019-04-03 09:21:54 +00:00
edi
2019-04-03 08:29:05 +00:00
hedera
nst
2019-04-03 09:21:54 +00:00
pbx
postgresql
salix
stock
util
vn
vn2008
vncontrol
2019-04-03 08:29:05 +00:00
)
mysqldump \
--defaults-file=config.production.ini \
--default-character-set=utf8 \
--no-data --comments \
--triggers --routines --events \
--databases \
${SCHEMAS[@]} \
> dump/structure.sql