diff --git a/omv_backup_v3.py b/omv_backup_v3.py index f362be4..21c10bd 100644 --- a/omv_backup_v3.py +++ b/omv_backup_v3.py @@ -457,12 +457,13 @@ if _RESTORE: if _BACKUP: - + last = 1 while True: directory = '/backups/' count = len(fnmatch.filter(os.listdir(directory), '*')) - - logging.info(f'File Count: {count}') + if last != count: + logging.info(f'File Count: {count}') + last = count if count == 0: time.sleep(10) continue