Hello,
I cannot understand why the symlink I have put in /etc/cront.daily won't work. It is very possible I am wrong, but my understanding is that cront.{daily,weekly,monthly} works fine with symlinks.
Basically it is double symlink-ed. ls -la on /etc/cron.daily looks like this:
Code:
...
lrwxrwxrwx 1 root root 49 Nov 27 18:26 rsync_mysql_backups.sh -> /home/myuser/scripts/bash/rsync_mysql_backups.sh
...
Now, ls -la on /home/myuser/scripts looks like this:
Code:
...
lrwxrwxrwx 1 myuser myuser 26 Sep 20 2013 scripts -> /media/md1_storage/scripts
...
I couldn't see anything suspicious in syslog, so I installed postfix in the hope that I will get some sort of information there. Nothing... I also redirected the output of the script to a file in /home/myuser/log.txt but nothing there. The file was not even created.
I am not doing anything mad in the script, I am just synchronising a local directory with a remote one like this:
Code:
/usr/bin/rsync -avzx -e 'ssh -i "/home/myuser/.ssh/myremotehost/id_rsa"' /media/md1_storage/backups/stuff/ myuser@myremotehost:/srv/backups/stuff/ >> /home/myuser/log.txt 2>&1;
As other people suggested in similar threads, I have verified that
Code:
test -x /usr/sbin/anacron
is false, which will result in the execution of the second part of the entry in /etc/crontab:
Code:
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Any input will be much appreciated. I know I am doing something wrong, but I just cannot see it right now... How can I gather more debugging which will help me understand what's going wrong?
Thanks!