I have a problem with a cronjob.
My Joomla-Site creates a backup everyday and I want this backupfile to be in another directory (as the joomla-backup-script has just access to the webfolders) Therefore I wrote this small script but unfortunately the script is not executed daily.
When executing it manually via the console everything is working fine. Has anyone an idea whats wrong with it?
are you sure that the backup skript terminates within 4 minutes? Perhaps there is no data to perform when running the move-skript cause the backup skript isn’t ready.
And I suppose that you mean with the “crontab file” the system crontab file /etc/crontab, and not the crontab of root (or another user)?
And yes, my first idea was also the 4 minutes. You say it is not executed daily, how you know? How do you detect the difference between “the script is not executed” and “the file is not copied”?
Thanks for your ideas.
So how do I know that there are backup files to be copied? Joomla has always 2 backup files stored, so there always have to be files that could be copied. (And they truly are, as I checked it)
Besides that the joomla-backup-script is finished after about 30 seconds
the /data directory is no partition
With “the script is not executed daily” I wanted to say that no files are copied and no old files are deleted.
But that is not the same. It may not matter at all in this case, but report exactly what you see that happens and not what you think that happens (wisecrack of old trouble shooting programmer).
BTW any reason to write a POSIX shell script instead of a bash script? Again, I do not think it matters, but I am just curious.
How can I use a Windowseditor to edit files on linux? No I used kwrite.
The cron deamon is running as the other two cronjobs run perfectly.
I edited the crontab file directly. (I did the same with the other cronjobs and they’re working)
/var/log/messages shows me that the other two jobs were started but the one I’m trying to get running