Skip to content
Permalink
Browse files

use anacron

  • Loading branch information...
GHolk committed Apr 4, 2018
1 parent ae960d9 commit 914bd505ff0d0de05dae3871d4f349ec34a7dca0
Showing with 21 additions and 0 deletions.
  1. +15 −0 anacrontab
  2. +5 −0 bin/backup-firefox-history.sh
  3. +1 −0 crontab
@@ -0,0 +1,15 @@
# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/gholk/.local/bin
HOME=/home/gholk
LOGNAME=gholk

# These replace cron's entries
# 1 5 cron.daily run-parts --report /etc/cron.daily
# 7 10 cron.weekly run-parts --report /etc/cron.weekly
# @monthly 15 cron.monthly run-parts --report /etc/cron.monthly
7 10 backup-firefox backup-firefox-history.sh

@@ -0,0 +1,5 @@
#!/bin/sh

tar --file ~gholk/web/places.sqlite.tar \
--append ~gholk/.mozilla/firefox/*.default/places.sqlite

@@ -21,3 +21,4 @@
#
# m h dom mon dow command
11,31,51 * * * * /home/gholk/.local/bin/xwall "二十分鐘,眼睛該休息囉!"
22 * * * * anacron -t ~/.local/share/anacron/anacrontab -S ~/.local/share/anacron

0 comments on commit 914bd50

Please sign in to comment.
You can’t perform that action at this time.