I have created a script and can execute it from command line with no issues works perfectly. I have now tried to set it up as a 15 minute recurring cron job and it seems to run something as the file is created in the correct place however it is empty.
this is my cron job line
*/2 * * * * root /root/cron.database-backup.sh
and I am editing /etc/crontab
Any suggestions?
/etc/crontab
directly via an editor or usingcrontab -e
? You should be usingcrontab -e
.