Skip to main content

Questions tagged [anacron]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
242 views

Anacron doesn't appear to run anything on Debian, but why? [duplicate]

I have an odd problem with my Debian server. Up until a few weeks ago, anacron was running my cron jobs fine and I can see I have backups from then so it was running stuff. Then it appears to have ...
Jez's user avatar
  • 1,006
0 votes
0 answers
76 views

anacron not running weekly scripts

/etc/anacrontab: # /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 ...
laur's user avatar
  • 588
0 votes
1 answer
69 views

cronjob: run script_A on boot/wake, then every 5 mins after that, run script_B on each of the 4 mins in between (so *not* just modulo-5 clock-minutes)

So I'd like to set up a cronjob in a very specific way: run script_A on boot/wake then every 5 minutes after, relative to that boot/wake (so not just modulo-5 clock-minutes) run script_B on each of ...
dwawlyn's user avatar
  • 23
0 votes
1 answer
43 views

`cronnext` reports `nextstring` for every-minute cronjob as beginning of the *current* minute, ie in the *past*. Normal?

So I'm seeing this weird thing (or at least, weird to me, with my tiny amount of experience). cronnext tells me the nextstring for an every-minute cronjob is the beginning of the current minute, ie ...
dwawlyn's user avatar
  • 23
0 votes
1 answer
100 views

what is the syntax of jobs.deny?

from man it said The execution of files can be allowed or denied by creating file jobs.allow or jobs.deny which worked similar as other allow/deny config files But the example has something like ...
Wang's user avatar
  • 1,336
0 votes
2 answers
215 views

Backup fails when sudo runs rclone during an anacron job

I have created a simple backup script that creates .tar.gz of all my important folders and upload it to Google Drive using rclone. Everything works perfectly fine when I run the script manually. But ...
pvs's user avatar
  • 1
1 vote
1 answer
89 views

This cron script was missed by shutdown

Is there a way to setup cron (or any other scheduler, like anacron) to run such that it checks immediately after I resume working on my laptop (e.g. after suspension or shutdown) whether it has ...
user7088941's user avatar
1 vote
2 answers
1k 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, ...
user avatar
1 vote
2 answers
309 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 ...
Masrepus's user avatar
0 votes
1 answer
788 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 ...
telometto's user avatar
  • 2,055
0 votes
1 answer
78 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-&...
mYnDstrEAm's user avatar
  • 4,398
1 vote
0 answers
15 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 ...
FelixJN's user avatar
  • 13.7k
0 votes
0 answers
92 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 ...
Farhan stands with Palestine's user avatar
2 votes
1 answer
1k 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 ...
cyclopticnerve's user avatar
0 votes
1 answer
251 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 ...
Raphaël Ventura's user avatar
0 votes
1 answer
178 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-...
BeeOnRope's user avatar
  • 559
0 votes
1 answer
784 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 ...
Fco Javier Balón's user avatar
0 votes
1 answer
255 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 ...
akc42's user avatar
  • 361
0 votes
0 answers
42 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 ...
Pavel's user avatar
  • 101
0 votes
1 answer
537 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 (...
NN_MET's user avatar
  • 1
-1 votes
2 answers
756 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 ...
sebelk's user avatar
  • 4,469
3 votes
1 answer
7k 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 ...
fraleone's user avatar
  • 837
0 votes
2 answers
1k 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 ...
Paradox's user avatar
  • 764
0 votes
0 answers
69 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, ...
user6329530's user avatar
0 votes
1 answer
35 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/...
Symb932's user avatar
  • 365
1 vote
2 answers
991 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 ...
UM-Li's user avatar
  • 47
1 vote
1 answer
663 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 ...
gusbrs's user avatar
  • 183
1 vote
1 answer
3k 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? ...
Tim's user avatar
  • 103k
0 votes
2 answers
4k 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 ...
Tim's user avatar
  • 103k
1 vote
1 answer
167 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 ...
Scaum's user avatar
  • 111
1 vote
1 answer
860 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 ...
Silv's user avatar
  • 325
0 votes
1 answer
511 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, ...
lindhe's user avatar
  • 4,296
0 votes
1 answer
122 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 "...
Uncle Ben Ben's user avatar
0 votes
1 answer
182 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 ...
Tyler Durden's user avatar
  • 5,773
15 votes
2 answers
7k 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.
tgwtdt's user avatar
  • 435
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 ...
PyGeek03's user avatar
1 vote
1 answer
793 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 ...
Jaleks's user avatar
  • 2,591