|
|
@ -112,7 +112,10 @@ class backupTools: |
|
|
|
if len(mycnf) > 100: |
|
|
|
if len(mycnf) > 100: |
|
|
|
mw.writeFile(db_path + '/etc/my.cnf', mycnf) |
|
|
|
mw.writeFile(db_path + '/etc/my.cnf', mycnf) |
|
|
|
|
|
|
|
|
|
|
|
mw.execShell(db_path + "/bin/mysqldump --opt --default-character-set=utf8 " + |
|
|
|
# mw.execShell(db_path + "/bin/mysqldump --opt --default-character-set=utf8 " + |
|
|
|
|
|
|
|
# name + " | gzip > " + filename) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mw.execShell(db_path + "/bin/mysqldump --skip-lock-tables --default-character-set=utf8 " + |
|
|
|
name + " | gzip > " + filename) |
|
|
|
name + " | gzip > " + filename) |
|
|
|
|
|
|
|
|
|
|
|
if not os.path.exists(filename): |
|
|
|
if not os.path.exists(filename): |
|
|
|