Adjust parameters for mysqldump.
This commit is contained in:
@ -643,16 +643,20 @@ EOF
|
||||
|
||||
cat <<EOF >> ${BORG_LOG_FILE}
|
||||
mysqldump ${MYSQL_CREDENTIALS} \\
|
||||
--single-transaction --routines \\
|
||||
-h localhost \\
|
||||
-e ${_db} > ${DB_BACKUP_DIR}/${_db}-mysql-${backup_date}.sql
|
||||
--single-transaction \\
|
||||
--routines \\
|
||||
--triggers \\
|
||||
--quick \\
|
||||
--extended-insert ${_db} > ${DB_BACKUP_DIR}/${_db}-mysql-${backup_date}.sql
|
||||
|
||||
EOF
|
||||
|
||||
mysqldump $MYSQL_CREDENTIALS \
|
||||
--single-transaction --routines \
|
||||
-h localhost \
|
||||
-e ${_db} > ${DB_BACKUP_DIR}/${_db}-mysql-${backup_date}.sql 2> ${log_file}
|
||||
--single-transaction \
|
||||
--routines \
|
||||
--triggers \
|
||||
--quick \
|
||||
--extended-insert ${_db} > ${DB_BACKUP_DIR}/${_db}-mysql-${backup_date}.sql 2> ${log_file}
|
||||
|
||||
if [[ -s "${log_file}" ]] ; then
|
||||
echo_failed
|
||||
|
Reference in New Issue
Block a user