adding bobasearchinarchive
This commit is contained in:
parent
6aadaaff7b
commit
760c755111
@ -70,3 +70,13 @@ for borgarchive in $(borg list --short ./);do
|
||||
borg info --json .::$borgarchive >> $HOME/borginfo.txt
|
||||
done
|
||||
}
|
||||
|
||||
#Trouver un fichier dans un dépôt, affiche la liste des archives qui contient le fichier
|
||||
function bobasearchinarchive {
|
||||
for borgarchive in $(borg list --short ./);do
|
||||
borggrep=$(borg list --short .::$borgarchive | grep $1)
|
||||
if [ $? = 0 ];then
|
||||
echo "Chaine trouvé dans l'archive : $borgarchive"
|
||||
fi
|
||||
done
|
||||
}
|
Loading…
Reference in New Issue
Block a user