I have a cronjob created using this tutorial: http://www.matt-helps.com/automatic-backup-of-mysql-database-to-s3/
It works when i run this command sudo sh s3BucketBackupScript.sh
But I can't get it run properly when configuring it in Cron. The script is modded with +x.
I configured it using sudo crontab -e as follows:
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
* * * * * /bin/sh /home/ubuntu/s3BucketBackupScript.sh
but no results. I think there is an empty line after the .sh lines. If I run the script without sudo it doesn't produce anything, so that's why I added it to sudo crontab -e
.
Any hints would be very appreciated.
* * * * *
? What is that to suppose to do? And I myself would have used "/etc/crobtab".