Remove ${tablename} on dump of event
This commit is contained in:
parent
369a601201
commit
2cb04431cd
|
@ -101,7 +101,7 @@ do
|
|||
info "Dumping ${dbname} schema"
|
||||
mysqldump --user=${USERNAME} --password=${PASSWORD} --host=${HOST} --port=${PORT} --no-data ${dbname} | gzip > ${FOLDER}/databases/${dbname}.sql.gz
|
||||
info "Dumping events, routines, triggers of ${dbname}"
|
||||
mysqldump --user=${USERNAME} --password=${PASSWORD} --host=${HOST} --port=${PORT} --no-data --no-create-info --routines --triggers --events ${dbname} ${tablename} | gzip > ${FOLDER}/extras/${dbname}.sql.gz
|
||||
mysqldump --user=${USERNAME} --password=${PASSWORD} --host=${HOST} --port=${PORT} --no-data --no-create-info --routines --triggers --events ${dbname} | gzip > ${FOLDER}/extras/${dbname}.sql.gz
|
||||
info "Know engine of database"
|
||||
## If all tables use InnoDB engine, we use --single-transaction
|
||||
## Also, if one or more table use MyISAM engine, we need lock all tables
|
||||
|
|
Loading…
Reference in New Issue