Note that there are some explanatory texts on larger screens.

plurals
  1. POanacron script in cron.daily not running via symlink
    primarykey
    data
    text
    <p>What can I do to make this script run daily?</p> <p><strong>If I manually run the script, it works. I can see that it did what it's supposed to do. (backup files)</strong> However, it will not run as a cron.daily script. I've let it go for days without touching it -- and it never runs.</p> <p>The actual script is here <code>/var/www/myapp/backup.sh</code></p> <p>There is a symlink to it here <code>/etc/cron.daily/myapp_backup.sh -&gt; /var/www/myapp/backup.sh</code></p> <p>The cron log at <code>/var/log/cron</code> shows anacron running this script:</p> <pre><code>Aug 19 03:09:01 ip-123-456-78-90 anacron[31537]: Job `cron.daily' started Aug 19 03:09:01 ip-123-456-78-90 run-parts(/etc/cron.daily)[31545]: starting myapp_backup.sh Aug 19 03:09:01 ip-123-456-78-90 run-parts(/etc/cron.daily)[31559]: finished myapp_backup.sh </code></pre> <p>Yet there is no evidence that the script actually did anything.</p> <p>Here is the security info on these files:</p> <pre><code>ls -la /var/cron.daily &lt;snip&gt; lrwxrwxrwx 1 root root 25 Aug 12 21:18 myapp_backup.sh -&gt; /var/www/myapp/backup.sh &lt;/snip&gt; ls -la /var/www/myapp &lt;snip&gt; drwxr-xr-x 2 root root 4096 Aug 13 13:55 . drwxr-xr-x 10 root root 4096 Jul 12 01:00 .. -rwxr-xr-x 1 root root 407 Aug 12 23:37 backup.sh -rw-r--r-- 1 root root 33 Aug 12 21:13 list.txt &lt;/snip&gt; </code></pre> <p>The file called <code>list.txt</code> is used by backup.sh.</p> <p>The script just runs <code>tar</code> to create an archive.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload