aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@fucktheforce.de>2021-02-22 20:01:41 +0100
committerroot <root@fucktheforce.de>2021-02-22 20:01:41 +0100
commit7c2d0642c43b75d1e17d88ecd4d3e895aaaf2032 (patch)
tree607e9d4a34b408e7ff55748a4411bc2188bcd7cc
parent2a99348c9c7701654450a3a0218d0ece2dd00c43 (diff)
add default charset
-rwxr-xr-xbackup_db.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup_db.sh b/backup_db.sh
index b5eaa29..d35f921 100755
--- a/backup_db.sh
+++ b/backup_db.sh
@@ -128,7 +128,7 @@ databases=$($nice -n 19 $mysql -u root -N -e "show databases;" | $grep -v "^info
for database in $databases
do
# dump database
- $nice -n 19 $mysqldump -u root "$database" > "$database.sql"
+ $nice -n 19 $mysqldump --default-character-set=utf8mb4 -u root "$database" > "$database.sql"
backup_db "$database" "$backupdirsingle" "$usesamerepo"