From d708383ce6f2777aea83957600c212b21bce61da Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 3 Aug 2022 21:11:41 +0800 Subject: [PATCH] Update backup.py --- scripts/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup.py b/scripts/backup.py index 51e1e6325..a3ea8cf9d 100755 --- a/scripts/backup.py +++ b/scripts/backup.py @@ -112,8 +112,8 @@ class backupTools: if len(mycnf) > 100: mw.writeFile(db_path + '/etc/my.cnf', mycnf) - mw.execShell( - db_path + "/bin/mysqldump --opt --default-character-set=utf8 " + name + " | gzip > " + filename) + mw.execShell(db_path + "/bin/mysqldump --opt --default-character-set=utf8 " + + name + " | gzip > " + filename) if not os.path.exists(filename): endDate = time.strftime('%Y/%m/%d %X', time.localtime())