1
hutman
Strange Cronjob Issues...
  • 2006/5/28 7:48

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


Hi

I'm trying to set up a backup script for my site - I've installed the Backup 3.0 module and all's hunky dory. Now I want that to be run automatically every day/week whatever so I set up a cronjob to run that points at mysite/modules/backup/admin/backup.php as the instructions suggest - however it doesn't work.

I get emailed a note saying:

/bin/sh: line 1: http://www.cgenie.net/modules/backup/admin/backup.php: No such file or directory

However I know this is balls, because if I copy and paste the link it gives me I get the backup message!!!

Am I missing something? Do I need to refresh some cache somewhere?!? I thought it might need to be chmod to 777, but that obviously isn't the case because it runs when I enter it manually...


HELP!

2
jdseymour
Re: Strange Cronjob Issues...

I have had this problem before, and would also like to see the answer to the solution. Notice the extra ":" at the end of the backup.php link, that breaks it. Anytime I call a file cron does the same to me. For backup in cron I use native mysqldump syntax with no problems.

3
hutman
Re: Strange Cronjob Issues...
  • 2006/5/28 8:33

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


errr... lost me

What do you mena by nativemysqldump syntax? Where can I find this?

4
jdseymour
Re: Strange Cronjob Issues...


5
hutman
Re: Strange Cronjob Issues...
  • 2006/5/28 8:47

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


great stuff! cheers!

6
hutman
Re: Strange Cronjob Issues...
  • 2006/5/28 8:52

  • hutman

  • Just popping in

  • Posts: 58

  • Since: 2006/3/15


AH!

It needs to be from your hosts server root:

So your site URL eg http://www.etc will never work, it needs to be:

/home/user/www etc


See this handy flash tutorial: http://www.scriptwiz.com/tutorials/cpanel/cronjob.htm

Hope this helps!

Login

Who's Online

372 user(s) are online (332 user(s) are browsing Support Forums)


Members: 0


Guests: 372


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits