diff --git a/scripts/watcher.py b/scripts/watcher.py index cece5cd..7a5afd2 100644 --- a/scripts/watcher.py +++ b/scripts/watcher.py @@ -63,7 +63,7 @@ def run_ingestion(): [PYTHON, INGEST_SCRIPT, NEXTCLOUD_PATH], capture_output=True, text=True, - timeout=600 + timeout=1800 ) if result.returncode == 0: # Update state with new mtimes @@ -93,6 +93,8 @@ class IngestHandler(FileSystemEventHandler): return if path.name.startswith('.') or path.name.startswith('~$'): return + if 'Admin/Backups' in str(path) or 'Backups' in path.parts: + return self.pending = True self.last_event = time.time()