aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anacrontab18
-rw-r--r--crontab1
2 files changed, 19 insertions, 0 deletions
diff --git a/anacrontab b/anacrontab
new file mode 100644
index 0000000..b719412
--- /dev/null
+++ b/anacrontab
@@ -0,0 +1,18 @@
+# /etc/anacrontab: configuration file for anacron
+
+# See anacron(8) and anacrontab(5) for details.
+
+SHELL=/bin/sh
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+MAILTO=root
+# the maximal random delay added to the base delay of the jobs
+RANDOM_DELAY=45
+# the jobs will be started during the following hours only
+START_HOURS_RANGE=3-22
+
+#period in days delay in minutes job-identifier command
+# 1 5 cron.daily nice run-parts /etc/cron.daily
+# 7 25 cron.weekly nice run-parts /etc/cron.weekly
+# @monthly 45 cron.monthly nice run-parts /etc/cron.monthly
+
+1 5 cron.backup.daily ~/.dotfiles/scripts/backup.sh
diff --git a/crontab b/crontab
index 62ede56..768e75b 100644
--- a/crontab
+++ b/crontab
@@ -1,3 +1,4 @@
*/30 * * * * /usr/bin/newsboat -x reload
*/10 * * * * /usr/bin/mbsync -a
00 */3 * * * /usr/bin/trash-empty -f 30
+00 * * * * /usr/sbin/anacron -t ~/.dotfiles/anacrontab -S ~/.cache/anacron/spool