From 0098b2c55f7410b793f412c6c738cfcfe37323ec Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 4 Jan 2025 20:16:54 +0200
Subject: [PATCH] Debian server: `dvb` behavior change.

Don't fail if there are no Docker volumes to backup. When running
manually it makes sense, but in the scope of a Cron job, the job fails
on hosts that don't have volumes marked for backup which is just noise.
---
 Ansible/roles/debian_server/files/dvb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Ansible/roles/debian_server/files/dvb b/Ansible/roles/debian_server/files/dvb
index 688e27d..7d87dde 100755
--- a/Ansible/roles/debian_server/files/dvb
+++ b/Ansible/roles/debian_server/files/dvb
@@ -57,7 +57,6 @@ then
 elif [ -z "$(docker volume ls --filter label=snapshot=true --format '{{ .Name }}')" ]
 then
     echo "No Docker volumes marked for backup, exiting." >&2
-    exit 1
 fi
 
 dest="$1"
-- 
GitLab