This commit is contained in:
2025-08-26 10:34:17 +02:00
parent 0eb8cc4afe
commit 9e7b774601

View File

@@ -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!")