adding build file, updating gititgnore, adding check in backup to create archive if source is present
This commit is contained in:
@@ -29,7 +29,7 @@ class Backup:
|
||||
self.backup = True
|
||||
|
||||
def createBackup(self):
|
||||
if os.path.exists(self.archivePath):
|
||||
if os.path.exists(self.archivePath) and os.path.exists(self.source_path):
|
||||
# copy the active database to the archive path, add _[date]
|
||||
day = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
|
||||
# copy the active database to the archive path, add _[date]
|
||||
|
||||
Reference in New Issue
Block a user