From ceb498027783147a54431870b97709611b14c876 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 21 Nov 2016 21:51:48 +0100 Subject: backupStatistics achtet jetzt auch auf Besitzer und Rechte --- backupStatistics.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backupStatistics.in') 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" ;; -- cgit v1.2.3-70-g09d2