From: martin f. krafft Date: Wed, 24 May 2017 09:14:02 +0000 (+0200) Subject: only remove empty files older than a day X-Git-Url: https://git.madduck.net/etc/crontab.git/commitdiff_plain/a9efedbd8723e3e62fe3118b806aad5d45c26eec?ds=sidebyside;hp=d8f4b7ff6958260f46cfe0904f96ad9e38d85caa only remove empty files older than a day --- diff --git a/.crontab.d/base b/.crontab.d/base index e095a73..d318745 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -1,5 +1,5 @@ SHELL=/bin/zsh MAILTO=madduck+crontab -38 4 * * * [[ -d $TMPDIR ]] && echo '- *' >| $TMPDIR/.backup-filter && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(NDa+1L0,.NDa+28,@NDa+28,N-@) -- rm -- +38 4 * * * [[ -d $TMPDIR ]] && echo '- *' >| $TMPDIR/.backup-filter && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(.NDa+1L0,.NDa+28,@NDa+28,N-@) -- rm -- 48 4 * * * [[ -d $TMPDIR ]] && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(/ND^F) -- rmdir --