add verbose restore, try to fix git file check

This commit is contained in:
2026-05-06 07:53:19 +02:00
parent ffe05c9587
commit 9f78b7a85f
4 changed files with 4 additions and 3 deletions
View File
View File
View File
+4 -3
View File
@@ -54,10 +54,11 @@ _getRandomFile
c=0 c=0
for file in "$files" ; do for file in "$files" ; do
let "c+=1" let "c+=1"
echo "$file" | grep -q .git && break echo "$file" | grep -q "\.git" && continue
echo "Trying to restore '${file}' from backup #${backup}" echo "Trying to restore '${file}' from backup #${backup}"
burp -a r -b ${backup} -r "${file}" -d ${restoreFolder} burp -a r -b ${backup} -v -r "${file}" -d ${restoreFolder}
test $c -eq $numFiles || continue printf "Check out file: '%s'\n" "${restoreFolder}/${file}"
test $c -eq $numFiles && break
done done
exit $? exit $?