diff options
author | Erich Eckner <git@eckner.net> | 2016-11-21 21:51:48 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-11-21 21:51:48 +0100 |
commit | ceb498027783147a54431870b97709611b14c876 (patch) | |
tree | 034919faf8b0f3f91bb250b05bef6f0be8785f70 /backupStatistics.in | |
parent | 61cfb0d0b963abbde781ddf5af8e3866d6f1b730 (diff) | |
download | hardlinkedBackups-ceb498027783147a54431870b97709611b14c876.tar.xz |
backupStatistics achtet jetzt auch auf Besitzer und Rechte
Diffstat (limited to 'backupStatistics.in')
-rw-r--r-- | backupStatistics.in | 8 |
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" ;; |