|
|
|
@ -36,7 +36,7 @@ class backupTools: |
|
|
|
|
"----------------------------------------------------------------------------") |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
backup_path = mw.getRootDir() + '/backup/site' |
|
|
|
|
backup_path = mw.getBackupDir() + '/site' |
|
|
|
|
if not os.path.exists(backup_path): |
|
|
|
|
mw.execShell("mkdir -p " + backup_path) |
|
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ class backupTools: |
|
|
|
|
"----------------------------------------------------------------------------") |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
backup_path = mw.getRootDir() + '/backup/database' |
|
|
|
|
backup_path = mw.getBackupDir() + '/database' |
|
|
|
|
if not os.path.exists(backup_path): |
|
|
|
|
mw.execShell("mkdir -p " + backup_path) |
|
|
|
|
|
|
|
|
|