From 62673cab53aa5fcfd0b7b21c042e8c9a1df48ff3 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Wed, 9 Feb 2022 12:40:13 +0100
Subject: [PATCH] restic diff: fix regex filter

---
 plugins/transfer/restic.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/transfer/restic.sh b/plugins/transfer/restic.sh
index f8e8771..20f9552 100644
--- a/plugins/transfer/restic.sh
+++ b/plugins/transfer/restic.sh
@@ -207,7 +207,7 @@
         local _snapshotNow
 
         # get list of snapshots and filter the lines with a date YYYY-MM-DD
-        _data=$( t_restoreDoShowVolumes | grep "[12][0-9][0-9][0-1]-[0-2][0-9]-[0-3][0-9]" | tail -5 )
+        _data=$( t_restoreDoShowVolumes | grep "[12][0-9][0-9][0-9]-[0-2][0-9]-[0-3][0-9]" | tail -5 )
         echo "..."
         echo "$_data"
 
-- 
GitLab