File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
install/etc/s6/services/10-db-backup Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ function backup_couch() {
105105
106106function backup_mysql() {
107107 if [ "$SPLIT_DB" = "TRUE" ] || [ "$SPLIT_DB" = "true" ]; then
108- DATABASES=`mysql -h $DBHOST -u$DBUSER -p$DBPASS --batch -e "SHOW DATABASES;" | grep -v Database|grep -v schema`
108+ DATABASES=`mysql -h $DBHOST -P $DBPORT - u$DBUSER -p$DBPASS --batch -e "SHOW DATABASES;" | grep -v Database|grep -v schema`
109109
110110 for db in $DATABASES; do
111111 if [[ "$db" != "information_schema" ]] && [[ "$db" != _* ]] ; then
112112 echo "** [db-backup] Dumping database: $db"
113113 TARGET=mysql_${db}_${DBHOST}_${now}.sql
114- mysqldump --max-allowed-packet=512M -h $DBHOST -u$DBUSER ${MYSQL_PASS_STR} --databases $db > ${TMPDIR}/${TARGET}
114+ mysqldump --max-allowed-packet=512M -h $DBHOST -P $DBPORT - u$DBUSER ${MYSQL_PASS_STR} --databases $db > ${TMPDIR}/${TARGET}
115115 generate_md5
116116 compression
117117 move_backup
You can’t perform that action at this time.
0 commit comments