check backup only if backup enables
This commit is contained in:
@@ -9,7 +9,9 @@ class Backup:
|
|||||||
self.source_path = config.database.path + "/" + config.database.name
|
self.source_path = config.database.path + "/" + config.database.name
|
||||||
self.backup_path = config.database.backupLocation + "/" + config.database.name
|
self.backup_path = config.database.backupLocation + "/" + config.database.name
|
||||||
self.backup = False
|
self.backup = False
|
||||||
|
if config.database.do_backup == True:
|
||||||
self.checkpaths()
|
self.checkpaths()
|
||||||
|
config.database.do_backup = self.backup
|
||||||
|
|
||||||
def checkpaths(self):
|
def checkpaths(self):
|
||||||
if os.path.exists(config.database.backupLocation):
|
if os.path.exists(config.database.backupLocation):
|
||||||
|
|||||||
Reference in New Issue
Block a user