|
|||
|
Backup Script Issue
Hello Everyone,
I'm here trying to extend my knowledge using cpanel and cron. I'm hoping someone may be able to give me a few hints as to what I may be doing wrong. So I have a php file that should be able to back up my db's and forums. I have it set to run ever 2 hours. The emails I get say: Status: 404 Not Found X-Powered-By: PHP/5.2.9 Content-type: text/html No input file specified. I had found a post on this but the guy was doing something different than me. Oh and here is my php script. PHP Code:
php /home/<username>/fullbackup.php So if anyone has any ideas I'm all ears and can't wait to learn more about this :-) |
|
|||
|
It looks like the cron you run were unable to locate your backup script. Did you actually replace the <username> with your own username?
__________________
[+] cPanelAutoBackup.Com - Automated Daily cPanel Backup [+] cPanelPlugins.Com - Cool cPanel Plugins |
|
|||
|
Quote:
The php file is in my root directory. |
|
|||
|
Try to use "php -i /home/<username>/fullbackup.php" or "php -i ./fullbackup.php" (if you located it at /root).
Alternatively, make it as actual Website file such as http://www.domain.com/fullbackup.php and use the command as below. lynx http://www.domain.com/fullbackup.php
__________________
Mick Genie | http://www.mickgenie.com |
|
|||
|
You can try accessing the backup script from your browser, like http://www.yourdomain.com/fullbackup.php
See what you get there. You can also call the script with wget when that works wget --delete-after http://www.yourdomain.com/fullbackup.php
__________________
[+] cPanelAutoBackup.Com - Automated Daily cPanel Backup [+] cPanelPlugins.Com - Cool cPanel Plugins |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| jsp script issue | rseshan | Developer Discussions | 3 | 06-10-2007 11:21 AM |
| HELP! I need a Backup Script to Backup SQL Nightly... [moved] | jeepj27 | cPanel Newbies | 7 | 10-29-2006 05:40 PM |
| Server Backup - "Daily Backup is up to date" issue | zigzam | cPanel and WHM Discussions | 6 | 07-18-2006 12:35 PM |
| mysql issue with database/script | Secret Agent | cPanel and WHM Discussions | 0 | 07-06-2005 04:26 PM |
| Script Execution Issue | Marty | cPanel and WHM Discussions | 5 | 07-27-2004 06:47 AM |