summaryrefslogtreecommitdiff
path: root/backupStatistics.in
diff options
context:
space:
mode:
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