borglist cosmé&tique

This commit is contained in:
Didier Denoual 2024-10-05 15:22:17 +02:00
parent b12a337679
commit d62a0ee43a

View File

@ -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
}