From 9e7b7746012a521dbc81aee645b7ea7922e1a078 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 26 Aug 2025 10:34:17 +0200 Subject: [PATCH] build --- omv_backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omv_backup.py b/omv_backup.py index 126d070..4c2d131 100755 --- a/omv_backup.py +++ b/omv_backup.py @@ -627,7 +627,7 @@ if _BACKUP: if _EXECUTE: status, output = subprocess.getstatusoutput(cmnd) for f in output.splitlines(): - pattern = r"^[0-9]{4}.*" # regex pattern: string starts with 'abc' + pattern = r"^[0-9]{4}-[0-9]{2}-[0-9]{2}_[0-9]{2}-[0-9]{2}-[0-9]{2}" # regex pattern: string starts with 'abc' logging.info(f"Checking {f}") if re.match(pattern, f): logging.info("Match!")