This commit is contained in:
midoks 2022-12-17 20:46:02 +08:00
parent c21d8eed8b
commit 7fa6ec7cd3
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class backupTools:
if not os.path.exists(backup_path):
mw.execShell("mkdir -p " + backup_path)
filename = backup_path + "/db_" + name + "_" + \
filename = backup_path + "/mariadb_" + name + "_" + \
time.strftime('%Y%m%d_%H%M%S', time.localtime()) + ".sql.gz"
mysql_root = mw.M('config').dbPos(db_path, db_name).where(

View File

@ -48,7 +48,7 @@ class backupTools:
if not os.path.exists(backup_path):
mw.execShell("mkdir -p " + backup_path)
filename = backup_path + "/db_" + name + "_" + \
filename = backup_path + "/mysql-apt_" + name + "_" + \
time.strftime('%Y%m%d_%H%M%S', time.localtime()) + ".sql.gz"
mysql_root = mw.M('config').dbPos(db_path, db_name).where(

View File

@ -48,7 +48,7 @@ class backupTools:
if not os.path.exists(backup_path):
mw.execShell("mkdir -p " + backup_path)
filename = backup_path + "/db_" + name + "_" + \
filename = backup_path + "/mysql-yum_" + name + "_" + \
time.strftime('%Y%m%d_%H%M%S', time.localtime()) + ".sql.gz"
mysql_root = mw.M('config').dbPos(db_path, db_name).where(