Questions tagged [anacron]

35 questions
15
votes
2 answers

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
  • 435
  • 4
  • 10
2
votes
1 answer

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 anacron runs scripts in /etc/cron.daily, and updates…
2
votes
1 answer

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 somewhat named similarly cronie..... available on my…
fraleone
  • 737
  • 2
  • 9
  • 21
1
vote
1 answer

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 executed a certain script that was scheduled while my…
user7088941
  • 111
  • 1
1
vote
2 answers

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, my ethernet interface suddenly stops. Interestingly : I…
user458762
1
vote
2 answers

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 is not suitable: I usually have my computer on…
Masrepus
  • 31
  • 4
1
vote
0 answers

What happens to at-scheduled job when PC is off?

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 there an anacron-analogue for at? info at does…
FelixJN
  • 12,616
  • 2
  • 27
  • 48
1
vote
2 answers

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 using anacron to execute missed jobs, but was not…
UM-Li
  • 37
  • 5
1
vote
1 answer

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 here and here. Some questions on this site also…
gusbrs
  • 183
  • 9
1
vote
1 answer

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 incremental backup to be made every day and a full…
Scaum
  • 111
  • 2
1
vote
1 answer

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 the backups do not run, as anacron always throws…
Jaleks
  • 2,499
  • 1
  • 17
  • 34
0
votes
1 answer

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 the 4 minutes in between (ie the minutes when…
dwawlyn
  • 23
  • 5
0
votes
1 answer

`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 in the past. eg, if I run cronnext at 02:11:27, it…
dwawlyn
  • 23
  • 5
0
votes
1 answer

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 0logwatch, what is the 0 means here? where can I…
Wang
  • 1,212
  • 2
  • 15
  • 26
0
votes
2 answers

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 it seems to be failing when anacron runs it. I use…
pvs
  • 1
  • 2
1
2 3