From 380e5d34142a04f55e036bdd36316f97ccc238cb Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Fri, 25 Jun 2021 09:41:55 +0200
Subject: [PATCH] More restrictive cleanup

---
 backup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backup.sh b/backup.sh
index 62bb872..5998c03 100755
--- a/backup.sh
+++ b/backup.sh
@@ -16,7 +16,7 @@ exit_on_fail(){
 retrie_on_fail(){
     if [ $1 -ne 0 ]; then
         backup "cleaned"
-        run_duplicity remove-all-inc-of-but-n-full 1 --force
+        run_duplicity remove-all-inc-of-but-n-full $(($BK_KEEP_FULL-1)) --force
         leave $?
     fi
 }
-- 
GitLab