Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [anacron]

The tag has no usage guidance.

0
votes
1answer
15 views

Is it possible to schedule an anacron single line command execution instead of sourcing a file?

Everywhere on the internet, in articles or tutorials (in the searching of "schedule an anacron command"), I find a format such as the following: @daily 15 rsync.daily /bin/bash /home/steven/...
1
vote
2answers
46 views

How to cancel anacron jobs delayed for a certain length of time?

Background: I want to backup some files on my laptop on a daily basis, and there are times when the laptop is shut down for several days in a row. I tried scheduling the backup as a cron job and ...
1
vote
1answer
99 views

Restrict time of day for anacron jobs in Linux Mint

I'd like to restrict the time of day the jobs set in anacrontab are allowed to run. I can find in man pages online info about START_HOURS_RANGE which is supposed to do precisely that. For example ...
0
votes
1answer
206 views

How does anacron determine daily, weekly and monthly job to run?

How does anacron determine daily, weekly and monthly job to run? Which time of the previous job will anacron use to decide whether to run the job again: start time or finish time of the previous job? ...
-2
votes
2answers
294 views

Is it true that “cron.daily runs anacron everyhour”?

On Ubuntu, what is the calling relation between cron and anacron? I am confused by looking at /etc/anacrontab, /etc/cron.daily/0anacron and /etc/crontab. From https://askubuntu.com/a/848638/1471 ...
1
vote
1answer
49 views

Anacron: Run daily scripts except when monthly script runs

I'm trying to setup some backup strategy using anacron and I'm running into a small issue. I'm using duplicity as a backup utility, which has 2 types of backups: full and incremental. I want a ...
0
votes
1answer
118 views

In what cases will anacron not run?

I am trying to understand how anacron works (in Fedora). I have three related questions. I am confused because of the following statement from the anacrontab manual: The START_HOURS_RANGE variable ...
0
votes
1answer
106 views

Specify a systemd unit for cronjob

When I run a cronjob, it's nice being able to follow its logs. If I want to see all logs from cron with journalctl, I can select the cron unit (journalctl -u cron). But when I have multiple cronjobs, ...
0
votes
1answer
39 views

How to execute a script as soon as the computer is active in a given time range and only once?

I need to run a script between some hours of a given day of week as soon as the machine is turned on. For example: every Monday between 07:00 and 10:00. I know how to handle the time conditions "...
0
votes
1answer
121 views

Linux is spamming me now (anacron)

Since about a year ago, linux Debian has been spamming me with messages like the following: Subject: Anacron job 'cron.daily' on mymachine Content-Type: text/plain; charset=UTF-8 Date: Mon, 3 Apr ...
12
votes
2answers
2k views

How does anacron work if it's not a daemon?

I was reading about the differences between cron and anacron and I realized that anacron, unlike cron is not a daemon. So I'm wondering how does it work actually if it's not a daemon.
0
votes
1answer
534 views

How to stop anacron from executing a specific missed cron job?

I want my computer to shutdown at 1 a.m., but if I have already suspended it before that then the shutdown should not happen at all. I have tried editing the crontab file, but when I resumed from ...
0
votes
1answer
165 views

Back In Time backup not starting via anacron because of “Can't open timestamp file for job…”

Back In Time is set up to start backups daily as soon as the external disk got connected. This results in a udev rule which starts anacron with a config file generated by Back In Time. Unfortunately ...