Jump to content

Recommended Posts

Posted

i have this command:

/usr/bin/php -q /home/redonet/public_html/

but get this error:

No input file specified.

 

what do i do?

 

btw, the script is supposed to run a cron job to backup my entire site...

anyone?

many thanks,

piotr

Posted

Currently, you are pointing the server to your public html folder... but no specific file or script.

 

So, if the name of the script is "thingy.php" and is in the folder called "backup" then your cron might look like

 

/usr/bin/php -q /home/redonet/public_html/backup/thingy.php

Posted

You might try looking at hotscripts.com and see what is there. We also discussed a simple script for emailing a copy of a backup of a MySQL db some time back called dbsender. It's a nice script if you just want the backup of a forum db or Movable Type db. I provided instructions on how to set it up and create a cron job to run it each night. Check out this thread on backing up your database for more on this script.

  • 1 month later...
Posted

Hm. Not sure how to backup the site. I'd be interested in that myself.

 

I actually run a mysqldump command every night on my websites that creates an SQL file in a folder on the site for an extra backup. I know that does nothing if all of the data on the server is lost, but maybe I'll also add in a PHP script that grabs the file and emails it to me, or something...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...