summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backupStatistics.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/backupStatistics.in b/backupStatistics.in
index aa9b92b..160ba0c 100644
--- a/backupStatistics.in
+++ b/backupStatistics.in
@@ -28,7 +28,7 @@ do_stage()
for dat in $(ls "${dest}")
do
echo "${dat}:"
- find "${dest}/${dat}" -type f -links -64001 -printf '%i %p\n' >> \
+ find "${dest}/${dat}" -type f -links -64001 -printf '%i %D-%m-%U-%G %p\n' >> \
"${cacheDir}/${backupID}.inodes"
done
;;
@@ -59,10 +59,10 @@ do_stage()
return 0
fi
cat "${cacheDir}/${backupID}.inodes.sorted/"part.* | \
- uniq -cm1 | \
+ uniq -cm2 | \
parallel \
- sha512sum {=s/^ *\([[:digit:]]\+ \)\{2\}//=} \| \
- sed '"s|^\([0-9a-f]\{128\}\) .*\$|\1 '{=s/^ *\([[:digit:]]\+ [[:digit:]]\+\) .*/\\1/=}'|"' \
+ sha512sum {=s/^ *\([[:digit:]]\+ \)\{2\}[0-9-]\+ //=} \| \
+ sed '"s|^\([0-9a-f]\{128\}\) .*\$|\1'{=s/^ *\([[:digit:]]\+ [[:digit:]]\+\) \([0-9-]\+\) .*/-\\2 \\1/=}'|"' \
\; > \
"${cacheDir}/${backupID}.content"
;;