Can't get crontabs to work


#1

I’m trying to setup crontabs -e cronjobs, I think I’m doing the editing of the file correct I feel I have my files in the wrong folder or missed something to allow it work. the bash file is located in /opt/Backup-Scripts. The command works in putty. this is my cronjob file:

30 * * * * /opt/Backup-Scripts/bat.sh

this is the bat.sh
#!/bin/bash
mysqldump -u mc -ppassword mcUltimateVotes > /var/games/minecraft/servers/Bungee/SQL/mcUltimateVotes.sql;