Backup Script - Could Not Open Input File

Posted by Iestyn on Super User See other posts from Super User or by Iestyn
Published on 2012-06-21T00:39:38Z Indexed on 2012/06/21 3:19 UTC
Read the original article Hit count: 249

Filed under:
|
|

this is the backup script that I've got going:

http://pastebin.com/4g4E6wUz

This is the cron info:

/usr/local/bin/php /home/backups/backup-db.php --filename-dated ALL

No matter what I do, I keep on getting this error:

Could not open input file: /home/backups/backup-db.php - That's the correct location of the file.

I just don't know what else to try, I feel I've been working on this for so long now that I've explored every avenue, on the other hand sometimes I think that the time I've spent on it is clouding my thoughts and I'm missing something stupidly obvious.

Just wondering if someone can give me a few pointers?

Also on a last note, does anyone know of a way/article to auto generate a full backup of cPanel every * amount of days and store it in a location that I want?

Kind Regards.

© Super User or respective owner

Related posts about backup

Related posts about php