Update backup.py

This commit is contained in:
midoks
2022-08-03 21:11:41 +08:00
parent 5906ce18b5
commit d708383ce6
+2 -2
View File
@@ -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())