Questions tagged [anacron]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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
1answer
17 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
0answers
36 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
1answer
212 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
2answers
68 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 ...
0
votes
1answer
115 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
1answer
87 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
0answers
27 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
1answer
18 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
168 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
243 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
518 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
783 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
73 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
215 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
174 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
48 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
135 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 ...
13
votes
2answers
3k 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
835 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
246 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 ...