mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-07 18:17:38 +02:00
6.1.4
This commit is contained in:
+2
-1
@@ -391,7 +391,7 @@ SetLink
|
||||
|
||||
fileName = name + '_' + time.strftime('%Y%m%d_%H%M%S',time.localtime()) + '.sql.gz'
|
||||
backupName = session['config']['backup_path'] + '/database/' + fileName
|
||||
public.ExecShell("/www/server/mysql/bin/mysqldump --force --opt \"" + name + "\" | gzip > " + backupName)
|
||||
public.ExecShell("/www/server/mysql/bin/mysqldump --default-character-set="+ public.get_database_character(name) +" --force --opt \"" + name + "\" | gzip > " + backupName)
|
||||
if not os.path.exists(backupName): return public.returnMsg(False,'BACKUP_ERROR');
|
||||
|
||||
self.mypass(False, root);
|
||||
@@ -769,6 +769,7 @@ SetLink
|
||||
if not os.path.exists(path): return public.returnMsg(False,'AJAX_LOG_FILR_NOT_EXISTS');
|
||||
return public.returnMsg(True,public.GetNumLines(path,1000));
|
||||
|
||||
|
||||
# 获取当前数据库信息
|
||||
def GetInfo(self,get):
|
||||
info=self.GetdataInfo(get)
|
||||
|
||||
Reference in New Issue
Block a user