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.backup_path = config.database.backupLocation + "/" + config.database.name
|
||||
self.backup = False
|
||||
self.checkpaths()
|
||||
if config.database.do_backup == True:
|
||||
self.checkpaths()
|
||||
config.database.do_backup = self.backup
|
||||
|
||||
def checkpaths(self):
|
||||
if os.path.exists(config.database.backupLocation):
|
||||
|
||||
Reference in New Issue
Block a user