read

I had been grappling with this problem since there is no straight forward backup website button in the godaddy’s control panel. PHP scripts seem to run into script timeouts or http timeouts because of the mammoth size of the website.

Heres the solution with help and information from:
http://www.bala-krishna.com/permission-denied-error-with-godaddy-cron-job

Bala Krishna has an excellent writeup on how to use the cron job on godaddy and to avoid the permissions error.

  1. Hence create a shell script file called sitebackup.sh
  2. Copy and paste the following:
    /bin/sh tar -cvvf /$HOME/html/fullsite.tgz .
  3. Save it.
  4. Upload to godaddy.
  5. Go into the control panel and locate the Cron Manager.
  6. Add a new Cron Job and Browse for the script you uploaded.

The backup should be created in the root of your web folder accessible via FTP or the web.

Blog Logo

alvin

0


Published

Image

1998 Nineteen-Ninety-Eight

Thoughts, stories and ideas.

Back to Overview