I have a script that creates a cron job to take a backup of a local MongoDB. When I execute crontab -l command
, I see following:
* */1 * * * cd /home/user/shell-scripts && sh mongo-backup.sh
I previously configured the same cronjob to run every minute but then I edited it. I have restarted my machine after editing the job.
What am I doing wrong?
Thanks
27 */1 * * * cd /home/user/shell-scripts && sh mongo-backup.sh
– pl_rock Sep 15 '15 at 07:37/home/user/shell-scripts/mongo-backup.sh
instead ofcd /home/user/shell-scripts && sh mongo-backup.sh
– Marek Bettman Sep 15 '15 at 07:54