Update backup.py

pull/256/head
midoks 3 years ago
parent 47bb1a98d4
commit 4c459c8676
  1. 4
      plugins/mysql-apt/scripts/backup.py

@ -27,10 +27,10 @@ class backupTools:
def backupDatabase(self, name, count):
db_path = mw.getServerDir() + '/mysql-apt'
db_name = 'mysql'
name = mw.M('databases').dbPos(db_path, 'mysql').where(
find_name = mw.M('databases').dbPos(db_path, 'mysql').where(
'name=?', (name,)).getField('name')
startTime = time.time()
if not name:
if not find_name:
endDate = time.strftime('%Y/%m/%d %X', time.localtime())
log = "数据库[" + name + "]不存在!"
print("★[" + endDate + "] " + log)

Loading…
Cancel
Save