blob: 2e59b7dc2ac2237c1146a2f01ed1e5fbd274b182 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
PATH=/usr/local/bin:/bin:/usr/bin
DIR=/var/lib/analog/caches
DOMAINS=`ls -1 $DIR | sed -e 's/\.cache-.*//' | uniq`
for d in $DOMAINS; do
keep --path $DIR --prefix $d --number 5 --null | xargs --null --no-run-if-empty rm
keep --path $DIR --prefix $d --number 2 --null | xargs --null --no-run-if-empty gzip -q
done
|