From d62a0ee43a3b301cf95f1e22290e076bba581f0a Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 5 Oct 2024 15:22:17 +0200 Subject: [PATCH] =?UTF-8?q?borglist=20cosm=C3=A9&tique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/scriptBorg.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/scriptBorg.sh b/bin/scriptBorg.sh index f3b396e..db79164 100755 --- a/bin/scriptBorg.sh +++ b/bin/scriptBorg.sh @@ -226,8 +226,13 @@ Borgumount() { } Borglist() { + BORG_LIST_BACKUPS=/tmp/borglistbackups.txt LogFic "Borg list demandé" - borg list --short ${BORG_REPO} + borg list --short ${BORG_REPO} >${BORG_LIST_BACKUPS} + cat ${BORG_LIST_BACKUPS} + echo " --- Nombre de backups" + cat ${BORG_LIST_BACKUPS} | wc -l + rm ${BORG_LIST_BACKUPS} exit }