I have this cronjob:
#!/bin/bash YEAR=`date +%Y` MONTH=`date +%m` DAY=`date +%d` mkdir -p $YEAR/$MONTH/$DAY mysqldump -uroot -p1234 locatari > $YEAR/$MONTH/$DAY/backup.sql
And I want to run this at each let's say 3 minutes. I tried with each of these
crontab commands and none on them seems to work:
3 * * * * /usr/bin /home/rome/cronjob/back.sh > /home/rome/cronjob 3 * * * * /home/rome/cronjob/back.sh/ 3 * * * * exec `/bin/bash /home/rome/cronjob/back.sh` 3 * * * * /bin/bash /home/rome/cronjob/back.sh > /dev/null 2>&1
I only made it run when I did:
All worked as expected with the bash command, what is wrong to my cron scheduler? Problem is that with the crontab command, I can't see my output, it only works with bash command.