<h2>Setup</h2>

<pre><code>
$ mkdir -p ~/.local/etc/cron.daily ~/.var/spool/anacron
</code></pre>


<p>Create a file called <code>anacrontab</code>&#58;</p>

<pre><code>
$ touch /.local/etc/anacrontab
</code></pre>

<p>Set it up to trigger scripts in your <code>cron.daily</code> folder&#58;
</p>

<pre><code>
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
1  0  cron.daily   run-parts $HOME/.local/etc/cron.daily/
</code></pre>

<p>
Validate your anacrontab&#58;
</p>

<pre><code>
$ anacron -T -t ~/.local/etc/anacrontab -S ~/.var/spool/anacron
</code></pre>

<p>Start anacron in a file that gets triggered at login, such as <code>~/.profile</code>&#58;
</p>

<pre><code>
anacron -t $HOME/.local/etc/anacrontab -S $HOME/.var/spool/anacron
</code></pre>

<h2>Using</h2>

<p>Now that everything is set up, just put scripts you want to run regularly in <code>cron.daily</code>, and make them executable.
</p>

<p>You can set up a weekly directory, too. Just set the time interval in your anacrontab to:
</p>

<pre><code>
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
7  0  cron.weekly   run-parts $HOME/.local/etc/cron.weekly/
</code></pre>