Browse Source

Add mysql socket comment to backup.sh

master
Riyyi 5 years ago
parent
commit
9723ee2b8c
  1. 3
      .scripts/backup.sh

3
.scripts/backup.sh

@ -89,6 +89,7 @@ done
umask 177
# MYSQL Dump
for DATABASE in $DATABASES; do
mysqldump --user=$USER --password=$PASSWORD --host=$HOST $DATABASE \
# mysqldump --user=$USER --protocol=socket -S /var/run/mysqld/mysqld.sock "$DATABASE"
mysqldump --user=$USER --password=$PASSWORD --host=$HOST "$DATABASE" \
> "$DIR/$BACKUP_NAME/$DATABASE-$BACKUP_NAME.sql"
done

Loading…
Cancel
Save