adding build file, updating gititgnore, adding check in backup to create archive if source is present

This commit is contained in:
2025-02-05 08:18:37 +01:00
parent 7140032109
commit 18be111dc1
3 changed files with 23 additions and 3 deletions

View File

@@ -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]