I'm running zulip on a virtual private server, and have created a script
backup-zulip on my laptop (with ubuntu 20.04) to back up zulip via ssh. I want to run this script daily, so I put the line
@daily 10 backup-zulip sudo -u username /home/username/bin/backup-zulip
/etc/anacrontab/. However, now the backup seems to run hourly whenever the laptop is turned on, filling up my drive far too fast.
What's going on?
I wondered whether the script gets rerun each hour by anacron since it exits on error, but running it by hand returns
Is there a log file that I can look into? Searching for
/var/log/ gives nothing.
/etc/anacrontab looks as follows:
# /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=/root LOGNAME=root # 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 @daily 10 backup-zulip sudo -u username /home/username/bin/backup-zulip
(If this is not the correct stack exchange for this question, where should I post it to?)