mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update backup.py
This commit is contained in:
+2
-2
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user