Questions tagged [anacron]

Anacron can be used to execute commands periodically, with a frequency specified in days.

it does not assume that the machine is running continuously. Hence, it can be used on machines that aren't running 24 hours a day, to control daily, weekly, and monthly jobs that are usually controlled by cron.

74 questions
39
votes
3 answers

How can I run anacron in user mode?

I would like to set up a scheduled task via anacron but I would like to do so in user mode. How can I achieve this?
Glutanimate
  • 21,763
38
votes
1 answer

Confused about relationship between cron and anacron

I've been googling in vain to turn up a general explanation of how cron and anacron work together. The man pages are a bit too deep of a dive for me at this point. I get confused because I add tasks to crontab, and that works, but when I delete…
20
votes
1 answer

Run /etc/cron.daily from specific user

Do I properly understand that it is not possible to run /etc/cron.daily/my from arbitrary user, it will be run only from root according to /etc/crontab? Can I drop root privilege to specific user in my cron scrip instead? It is better to place cron…
gavenkoa
  • 1,103
14
votes
1 answer

Manually run an Anacron Job

I have performed a minimal installation of UBUNTU. I trying to configure my system to take automatic backups using rsnapshot. I have successfully configured my rsnapshot.conf file and by running rsnapshot weekly command in terminal I am getting the…
Siddharth Manthan
  • 183
  • 2
  • 2
  • 9
11
votes
3 answers

Disable daily anacron mail updates

Every day, I get the following mail delivered by postfix: From: Anacron To: root@name.domain Subject: Anacron job 'cron.daily' on name Content-Type: text/plain; charset=US-ASCII Message-Id:…
JeffreyB
  • 111
10
votes
1 answer

Why 'nobody' always starts a new `find` program that always consume my memory?

$ ps -elf | grep ... 0 D nobody 27320 27319 2 90 10 - 353471 sleep_ 07:54 ? 00:02:19 /usr/bin/find / -ignore_readdir_race ( -fstype NFS -o -fstype nfs -o -fstype nfs4 -o -fstype afs -o -fstype binfmt_misc -o -fstype proc -o -fstype smbfs…
Yishu Fang
  • 2,615
9
votes
1 answer

Cron/Anacron vs. Systemd

Linux provides three different job schedulers i.e. Cron, Anacron and Systemd-Timer. What are the benefits of Cron/Anacron vs. Systemd-Timer?
8
votes
3 answers

Why is my weekly anacron job not executed?

I'd like to use anacron for a weekly job on Ubuntu 13.04. Here's my /etc/crontab: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and…
jasmines
  • 11,311
6
votes
0 answers

Which tasks in "Scheduled Tasks" (gnome-schedule) use anacron versus cron?

I am trying to run a command once a day, but my machine is not always on. anacron says it's meant for such purposes, but I prefer to use the Gnome Scheduled Tasks GUI program. If I schedule a task to run every day using the "New" recurrent task via…
user29020
  • 533
5
votes
1 answer

How to setup cron.daily?

I put my shell script inside /etc/cron.daily I was hoping everything that in that folder would be run daily but my script is not being ran.
physiii
  • 211
5
votes
1 answer

Where Crontab? Ubuntu 16.04

I've been trying to suss out how to add a job using crontab from this video: https://www.youtube.com/watch?v=vrPGRE6FV9g Easy enough and understandable but I can't find the crontab in etc? Acutally a few videos seems to mention the crontab too. It…
5
votes
1 answer

Who runs scripts inside /etc/cron.hourly if anacron is enabled?

I've read that if anacron is enabled cron doesn't run the scripts inside cron.weekly/hourly/daily/hourly, as not to run them twice. So anacron takes responsability on that folders. However anacron doesn't work with hourly scripts. So, who runs…
whitenoisedb
  • 743
  • 5
  • 12
  • 18
4
votes
2 answers

How to make Anacron startup reliably?

So, I'm using Anacron to be able to reliably run some scripts daily. However, this doesn't work when Anacron itself doesn't start on boot half the time. How would I get Anacron to start up reliably? > grep 'anacron' /var/log/syslog.2 May 18 19:09:02…
Sam Bull
  • 191
4
votes
1 answer

anacron not working

I have a clean install of Xubuntu 14.04 32-bit, and anacron doesn't seem to be working. I read that it's better to use a cron job to trim SSDs, and that Ubuntu has a cron job to do that, so I removed discard from /etc/fstab. I wanted to confirm that…
Dominic
  • 51
4
votes
1 answer

Is upstart a solid replacement for anacron yet?

Upstart FAQ says: Will Upstart replace cron, atd or anacron? Yes. A planned feature for Upstart is the ability to generate events at a particular scheduled time, regular scheduled time or particular timed intervals. However, the bottom of the…
1
2 3 4 5