From 354f9cabaaff45a111e66cacad0885e8d7f28b79 Mon Sep 17 00:00:00 2001 From: redxef Date: Sun, 16 Aug 2020 16:34:02 +0200 Subject: [PATCH] Fixed regex. --- dvbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvbackup.sh b/dvbackup.sh index 58252a9..e77e418 100755 --- a/dvbackup.sh +++ b/dvbackup.sh @@ -40,7 +40,7 @@ restore() { main() { local volumes - volumes="$(docker volume ls | tail -n+2 | egrep -v '[a-z]+\s+[0-9a-f]+' | egrep -o '\s.+$' | sed 's/\s//g')" + volumes="$(docker volume ls | tail -n+2 | egrep -v '[a-z]+\s+[0-9a-f]+$' | egrep -o '\s.+$' | sed 's/\s//g')" while read -r line; do echo "$line -> $line.tar" backup "$line" "$line.tar"