cron.daily.ex
author Heiko Schlittermann <hs@schlittermann.de>
Wed, 21 Jun 2017 00:26:46 +0200
changeset 73 e2559ee78cb3
parent 49 3e57c577c01e
permissions -rw-r--r--
[snapshot] working?
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     1
#! /bin/bash
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     2
49
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     3
command -v exigrey >/dev/null || exit 0
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     4
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     5
# only output if terminal is connected
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     6
test -t 0 || exec >/dev/null
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     7
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     8
exigrey --clean 3 '*'
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     9
exigrey --purge 5 '*'