From: martin f. krafft Date: Tue, 24 Aug 2010 08:27:23 +0000 (+0200) Subject: new backup-filter file to exclude tmpdir X-Git-Url: https://git.madduck.net/etc/crontab.git/commitdiff_plain/10fef5876d301f5d48f45fea60c6554543b6b01c new backup-filter file to exclude tmpdir --- diff --git a/.crontab.d/base b/.crontab.d/base index 74e13c4..e095a73 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -1,5 +1,5 @@ SHELL=/bin/zsh MAILTO=madduck+crontab -38 4 * * * [[ -d $TMPDIR ]] && : >| $TMPDIR/.nobackup && 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 --