]> Cypherpunks.ru repositories - nncp.git/blob - doc/integration/freqindex.texi
cec8463d5cdd093270bbae44c2078c91ee142e6f
[nncp.git] / doc / integration / freqindex.texi
1 @node FreqIndex
2 @section Index files for freqing
3
4 In many cases you do not know exact files list on remote machine you
5 want to freq from. Because files can be updated there. It is useful to
6 run cron-ed job on it to create files listing you can freq and search
7 for files in it:
8
9 @example
10 0  4  *  *  *  cd /storage ; tmp=`mktemp` ; \
11     tree -f -h -N --du --timefmt \%Y-\%m-\%d |
12     zstdmt -19 > $tmp && chmod 644 $tmp && mv $tmp TREE.txt.zst ; \
13     tree -J -f --timefmt \%Y-\%m-\%d |
14     zstdmt -19 > $tmp && chmod 644 $tmp && mv $tmp TREE.json.zst
15 @end example