adding 2 functions : bobalstimes and bobainfotail

bobalstimes : list all archives with time creation
bobainfotail : list infos about the 5 last archives
This commit is contained in:
Djan 2021-09-28 13:53:20 +02:00
parent 9e5f5f8469
commit 9e47583883
1 changed files with 18 additions and 4 deletions

View File

@ -104,11 +104,14 @@ function bobals {
TestBorgRepo
if [ "$TestBorgErr" = "1" ]; then return;fi
if [ "$1" != "" ]; then
borg list --short .::$1
else
borg list --short ./
fi
}
function bobalstimes {
TestBorgRepo
if [ "$TestBorgErr" = "1" ]; then return;fi
borg list --format {barchive}{SPACE}{SPACE}{TAB}{start}{NL} ./
}
function bobagrepls {
@ -140,6 +143,17 @@ function bobainfolast {
borg info .::$archive
}
function bobainfotail {
TestBorgRepo
if [ "$TestBorgErr" = "1" ]; then return;fi
for archive in $(borg list --short ./ | tail -n 5);do
echo "----------------------------------------------------"
borg info .::$archive
echo "----------------------------------------------------"
done
}
function bobainfoall {
TestBorgRepo
if [ "$TestBorgErr" = "1" ]; then return;fi