summaryrefslogtreecommitdiff
path: root/backupStatistics.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-11-12 19:33:14 +0100
committerErich Eckner <git@eckner.net>2016-11-12 19:33:14 +0100
commitc7c3f0368ed65c015a3983743191436e6585e51f (patch)
tree95fad345338ce3aa45a16aaa69f48cc98a738fb6 /backupStatistics.in
parent6967d1e15ec98e08e13b6c3ee74a536f50904325 (diff)
downloadhardlinkedBackups-c7c3f0368ed65c015a3983743191436e6585e51f.tar.xz
backupStatistics erstellt jetzt hardlinks in 64999-er Bloecken
Diffstat (limited to 'backupStatistics.in')
-rw-r--r--backupStatistics.in21
1 files changed, 16 insertions, 5 deletions
diff --git a/backupStatistics.in b/backupStatistics.in
index 595beb8..8865af5 100644
--- a/backupStatistics.in
+++ b/backupStatistics.in
@@ -149,12 +149,23 @@ do_stage()
then
diff "${original}" "${kopie}"
fi
- echo "rm \"${kopie}\""
- echo "ln \"${original}\" \"${kopie}\""
- if ! ${dummy}
+ if [ $(stat -c'%h' "${original}") -ge 65000 ]
then
- rm "${kopie}"
- ln "${original}" "${kopie}"
+ echo "rm \"${original}\""
+ echo "ln \"${kopie}\" \"${original}\""
+ if ! ${dummy}
+ then
+ rm "${original}"
+ ln "${kopie}" "${original}"
+ fi
+ else
+ echo "rm \"${kopie}\""
+ echo "ln \"${original}\" \"${kopie}\""
+ if ! ${dummy}
+ then
+ rm "${kopie}"
+ ln "${original}" "${kopie}"
+ fi
fi
done
done