Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cron Not Regular
#1

Hi,

I'm posting here with yet another one of my problems, being cron. For some reason I cannot get it to work, below is what I have setup (through crontab -e)



Code:
# m h  dom mon dow   command
0 19 * * *  "/media/hdd/backup/Web Server/webserverbackup.sh"




Which runs a script to backup my web server, although I cannot figure out why, but it doesn't want to run it. The date is setup correctly. and I'm struggling to think of any other problems. Could anyone point me into the right direction with this?

 

Thanks,

Lee :)

Reply
#2

Heya, um two things that I would do. First do this, it will make sure you script is executable.



Code:
chmod +x /media/hdd/backup/Web\ Server/webserverbackup.sh




 

Then I wouldn't use " " inside the crontab (I honestly don't know if it works or not that way).

 



Code:
0 19 * * * /media/hdd/backup/Web\ Server/webserverbackup.sh




 

Try that, see how it goes, remember to check your e-mail and logs to see if any errors occurred.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)