Questions tagged [anacron]
The anacron tag has no usage guidance.
31
questions
0
votes
2
answers
172
views
Why can I ping to 8.8.8.8 or openDNS server but no other websites?
I am using USB wired modem to connect internet(over eth0 interface) in Debian Bullseye (uname -a >> Linux styx 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux). Sometimes, ...
0
votes
1
answer
39
views
Anacron kills children of my task
I wanted to set up an anacron task to run a backintime backup once a day (Ubuntu 20.04.3 LTS). If you schedule this using the backintime GUI, the normal crontab is being used, but for my use case this ...
0
votes
1
answer
98
views
Why doesn't anacron run the tasks scheduled?
I've set anacron to run several tasks, but it seems to fail due to some sort of weird permissions error.
This is my anacrontab:
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and ...
0
votes
0
answers
48
views
cron hourly calling application that has been removed
I had installed timeshift and then removed it. But now in my journal I find that cron expects to find it. I quote the error below.
I check the cron.hourly directory and find that it contains only a ...
0
votes
1
answer
40
views
Why is a find process getting started by checksecurity in Debian and how to disable it if it's not useful?
With sudo lsof | grep mounted-drive-name I found that a find process is running on one of my hard drives which I'd like to spare.
With KDE's system monitor it shows me that it was started by anacron-&...
1
vote
0
answers
13
views
What happens to at-scheduled job when PC is off? [duplicate]
Say I have job scheduled via at - what happens when the PC is off during that scheduled time?
Will the job be caught up for during reboot? Does this have to be specified?
Or comparing this to cron: Is ...
0
votes
0
answers
23
views
anacron is given priority over cron
An extract from the book Linux-In-Action
As you can see from the crontab file, anacron is given priority over cron.
the crontab file he is referring is - /etc/crontab
Consider the below scenario
My ...
1
vote
1
answer
288
views
cron vs. anacron
I've got a pretty good handle on how cron/anacron work on linux. My question is this:
anacron runs at login, and checks if it's been more than a day since the scripts in /etc/cron.daily have run
...
0
votes
1
answer
68
views
Cannot run anacron while it seems to be installed (Debian 10)
I'd like to setup a job using anacron on my desktop PC running Debian GNU/Linux 10 (buster).
The anacron package seems to be installed properly: running sudo apt install anacron returns
anacron is ...
0
votes
1
answer
98
views
Can I set an enviroment variable for a single anacron command?
Consider the following anacrontab file:
1 0 bob-job /home/bob/script.sh
I know I can set variables like this:
FOO=bar
1 0 bob-job /home/bob/script.sh
However, can I set a variable just for the bob-...
0
votes
1
answer
125
views
how to schedule a task that runs a command or script when a user logs on?
I want to program a script that is launched whenever a specific user, let's call it user log in.
For example, when you log on to the computer with that user or using the su command on a terminal.
I ...
0
votes
1
answer
121
views
How does anacron run at the same time each period?
I am trying to set up a regular backup regime for my desktop running debian stable. Its not always on, so I might miss the required times if I just use cron. But for now thats what I am doing ...
0
votes
0
answers
37
views
Different versions of files in different hours
On my laptop, I have three files: file, file-morning and file-afternoon. I want file to be a copy of file-morning before 12AM and a copy of file-afternoon after 12AM. Ideally, I would like to be able ...
0
votes
1
answer
346
views
cron automatically activated after some time
I am working on Ubuntu remote server. I deleted automatic cron jobs from my server, but it recovered automatically after some days and occupy my 50% CPU. I attached cron job file from my server here (...
-1
votes
2
answers
293
views
When is /etc/crontab checked?
I read on cron man page:
Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; The found crontabs are loaded into the memory. Cron also searches ...
2
votes
1
answer
2k
views
What is the different use case of cronie, cronie-noanacron, cronie-anacron?
Today (in 2020, with init systemd), there seem to be many ways to schedule tasks (something I assume previously made by the crond daemon).
My trouble is to understand why there are three packages ...
0
votes
1
answer
736
views
Timeshift weekly cron emails
I recently installed timeshift and set it to backup weekly. However, when I looked in /etc/cron.d, I only found timeshift-hourly which ran:
0 * * * * root timeshift --check --scripted
which appears ...
0
votes
0
answers
44
views
How do I run anacron job AFTER another anacron job has been ran?
I have an anacron job that creates zfs snapshots using zfs-auto-snapshot package.
I now want to create a job that sends the latest snapshot via zfs send to a backup server.
As I understood, ...
0
votes
1
answer
26
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
2
answers
549
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
1
answer
491
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
1
answer
1k
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? ...
-1
votes
2
answers
2k
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
1
answer
132
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
1
answer
534
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
1
answer
381
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
1
answer
83
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
1
answer
151
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 ...
14
votes
2
answers
5k
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
1
answer
2k
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
1
answer
505
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 ...