diff --git a/borgaliasandfunctions.txt b/borgaliasandfunctions.txt index 964327b..e82874d 100644 --- a/borgaliasandfunctions.txt +++ b/borgaliasandfunctions.txt @@ -8,7 +8,7 @@ BorgBackup alias and functions (by Djan GICQUEL) --- bobals With argument : list all files of an archive Without argument : list achives in repo -bobagrepls List the archives of the repository with a filter (prompting) +bobagrepls List the archives of the repository with a filter as argument bobainfoa Get information of an archive in argument bobainfor Get information of a repository bobainfolast Get info from last archive @@ -27,7 +27,7 @@ bobadel Delete the archive in argument bobadelast Delete the last archive in the repository bobacheckrepo Check the repo consistencyi without repairing it (to avoid data lost) bobadeleter Mass archives deleting -bobagrepdeleter Mass archives deleting with filter (prompting) +bobagrepdeleter Mass archives deleting with filter as argument bobarenamer Mass archives renaming EOF @@ -38,7 +38,7 @@ cat << EOF BorgBackup alias and functions (by Djan GICQUEL) --- bobals Lister les archives du dépôt -bobagrepls Lister les archives du dépôt avec un filtre (saisie) +bobagrepls Lister les archives du dépôt avec un filtre en argument bobainfoa Obtenir les informations d’une archive bobainfor Obtenir les informations d’un dépôt bobainfolast Obtenir les informations de la dernière archive @@ -55,7 +55,7 @@ bobasearchinarchive Chercher un fichier dans une archive en argument, affiche l bobaduration Montrer le nom des archives et le temps de sauvegarde bobadur Lister le nom des archive et leurs tailles (originale, compressée, dédupliquée) bobadeleter Supprimer facilement plusieurs archives d'un dépôt -bobagrepdeleter Supprimer facilement plusieurs archives d'un dépôt avec un filtre (saisie) +bobagrepdeleter Supprimer facilement plusieurs archives d'un dépôt avec un filtre en argument bobarenamer Renommer en masses les archives d'un dépôt bobacachedel Supprimer le cache d'un dépôt (ne supprime aucune archive) bobasecuritydel Supprimer le dossier security d'un dépôt (ne supprime aucune archive) @@ -115,8 +115,7 @@ function bobagrepls { TestBorgRepo if [ "$TestBorgErr" = "1" ]; then return;fi - read -p "Pattern to filter : " grepfilter - borg list --short ./ | grep $grepfilter + borg list --short ./ | grep $1 } function bobainfoa { @@ -330,8 +329,7 @@ function bobagrepdeleter { borgrepo="${PWD##*/}" file="borgdelete_$borgrepo.sh" - read -p "Pattern to filter : " grepfilter - borg list --short ./ | grep $grepfilter >> $file + borg list --short ./ | grep $1 >> $file if [ "$?" != "0" ]; then echo "Error generating list of archives. Exiting." && rm $file && return;fi sed -i 's/^/"/' $file