summaryrefslogtreecommitdiff
path: root/backupStatistics.in
diff options
context:
space:
mode:
Diffstat (limited to 'backupStatistics.in')
-rw-r--r--backupStatistics.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/backupStatistics.in b/backupStatistics.in
index 9e9608c..8de5f9c 100644
--- a/backupStatistics.in
+++ b/backupStatistics.in
@@ -300,6 +300,20 @@ then
exit 1
fi
+(
+ echo -n 'Signature: '
+ echo -n '.IsCacheDirectory' | \
+ md5sum - | \
+ cut -d ' ' -f 1
+ echo '# This file is a cache directory tag created by '"$(basename "$0")"'.'
+ echo '# For information about cache directory tags, see:'
+ echo '# http://www.brynosaurus.com/cachedir/'
+) > "${cacheDir}/CACHEDIR.TAG"
+(
+ echo '+ .rsync-filter'
+ echo '- *'
+) > "${cacheDir}/.rsync-filter"
+
if [ ! "${skipNum}" -ge 0 ] || \
[ ! "${skipNum}" -le #NUMSTAGES# ] || \
[ ! "${maxNum}" -ge 0 ] || \