bung@irc:~$ crontab -l | tail -n 9 # remove content-free irclogs 10 0 * * * /usr/bin/find /home/jrayhawk/irclogs/ -type f -mtime +0 -iname '*.log' -print0 | /usr/bin/xargs --no-run-if-empty -0 /bin/grep -ZL '^[0-9]' | /usr/bin/xargs --no-run-if-empty -0 /bin/rm # compress irclogs 20 0 * * * /usr/bin/find /home/jrayhawk/irclogs/ -type f -mtime +0 -iname '*.log' -print0 | /usr/bin/xargs --no-run-if-empty -0 xz # make irclogs/twitch visible to www-data 0 1 * * * /usr/bin/find /home/jrayhawk/irclogs/twitch/ -maxdepth 1 -type d -not -group www-data -print0 | /usr/bin/pee '/usr/bin/xargs --no-run-if-empty -0 chown jrayhawk.www-data' '/usr/bin/xargs --no-run-if-empty -0 chmod 750' 0 1 * * * /usr/bin/find /home/jrayhawk/irclogs/twitch/ -type f -not -group www-data -print0 | /usr/bin/pee '/usr/bin/xargs --no-run-if-empty -0 chown jrayhawk.www-data' '/usr/bin/xargs --no-run-if-empty -0 chmod 640' bung@irc:~$ sudo crontab -u www-data -l | tail -n 1 30 0 * * * /usr/bin/chronic /usr/bin/omindex -F application/x-xz:xzcat -M log:ignore -D /var/lib/xapian-omega/data/twitchlogs -U /twitchlogs /home/jrayhawk/irclogs/twitch bung@irc:~$