salix/db/export-structure.sh

29 lines
408 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
vncontrol
2019-04-03 08:29:05 +00:00
)
mysqldump \
--defaults-file=config.production.ini \
--default-character-set=utf8 \
2019-12-05 13:20:11 +00:00
--column-statistics=0 \
2019-04-03 08:29:05 +00:00
--no-data --comments \
--triggers --routines --events \
--databases \
${SCHEMAS[@]} \
> dump/structure.sql