diff options
author | Erich Eckner <git@eckner.net> | 2017-01-13 11:56:39 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-01-13 11:56:39 +0100 |
commit | 40ef8a7ae92d9c8671066ed0f6682b14096ef1d8 (patch) | |
tree | 73676e456a6e4ce7adaec59afa2af54ddc45ca3d /backupStatistics.in | |
parent | 54743908e9c1b0b15ec0a45f1b74f17d85f295c4 (diff) | |
download | hardlinkedBackups-40ef8a7ae92d9c8671066ed0f6682b14096ef1d8.tar.xz |
generate cachedir-tags
Diffstat (limited to 'backupStatistics.in')
-rw-r--r-- | backupStatistics.in | 14 |
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 ] || \ |