From 856f88c15de8e6e3844237f48cedf0e50cfe3701 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sat, 29 Oct 2022 11:55:48 -0400 Subject: crontab --- .chezmoiignore | 1 + crontab | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 crontab diff --git a/.chezmoiignore b/.chezmoiignore index 436216e..a96780b 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -9,6 +9,7 @@ packages-debian packages-openbsd .gitmodules chezmoi.toml.censored +crontab {{- if ne .chezmoi.os "openbsd" }} # only install if on openbsd diff --git a/crontab b/crontab new file mode 100644 index 0000000..d049afc --- /dev/null +++ b/crontab @@ -0,0 +1,37 @@ +# Edit this file to introduce tasks to be run by cron. +# +# Each task to run has to be defined through a single line +# indicating with different fields when the task will be run +# and what command to run for the task +# +# To define the time you can provide concrete values for +# minute (m), hour (h), day of month (dom), month (mon), +# and day of week (dow) or use '*' in these fields (for 'any'). +# +# Notice that tasks will be started based on the cron's system +# daemon's notion of time and timezones. +# +# Output of the crontab jobs (including errors) is sent through +# email to the user the crontab file belongs to (unless redirected). +# +# For example, you can run a backup of all your user accounts +# at 5 a.m every week with: +# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ +# +# For more information see the manual pages of crontab(5) and cron(8) +# +# m h dom mon dow command +0 * * * * zsh -c "rkinits" >/dev/null 2>&1 +0 0 * * * TEXMFHOME=${HOME}/.texmf updmap -user > /dev/null +0 0 * * * /home/rak/bin/Internet.m3u.sh +0 0 * * sun mount | grep -q /media/t && /media/t/Archives/irc-logs/backup.sh +0 2 * * * mount | grep -q /media/t && /media/t/Archives/email/rak.ac/backup.sh +30 2 * * * mount | grep -q /media/t && /media/t/Archives/git.rak.ac/backup.sh +0 4 * * * /home/rak/bin/borg-home.sh > /dev/null +30 4 * * * mount | grep -q /media/t && /media/t/borg-tosh.sh > /dev/null +0 23 1,15 * * /home/rak/bin/borg-check.sh +35 23 * * * recollindex >/dev/null 2>&1 +0 * * * * ${HOME}/Documents/papers/commit-push.sh >/dev/null 2>&1 +0 0 * * * /usr/sbin/tmpreaper --mtime-dir 30d ~/Downloads +0 0 * * * /usr/sbin/tmpreaper --mtime-dir 90d ~/tmp +0 3 * * * updatedb -l 0 -o ~/.local/state/plocate/home.db -U ~ -- cgit v1.2.3