Update backup.py

This commit is contained in:
Mr Chen 2024-05-17 13:54:59 +08:00
parent 030e05b2cf
commit 61e136fb39
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class backupTools:
# skip-opt 不会lock表
# --skip-opt --create-options
cmd = db_path + "/bin/mysqldump --defaults-file=" + my_cnf +" " + option +" --single-transaction --default-character-set=utf8 " + \
cmd = db_path + "/bin/mysqldump --defaults-file=" + my_cnf +" " + option +" --single-transaction --compress -q --default-character-set=utf8mb4 " + \
name + " | gzip > " + filename
# print(cmd)
mw.execShell(cmd)