Stanz
New Member
- Messages
- 76
- Reaction score
- 0
- Points
- 0
Download the script, attached below.
Open the .php file in the attached .zip file & edit it.
Upload the script to your site (create a new directory) for example yoursite.com/sqlbackup.
CHMOD the new directory (folder) to 777.
Go to your CPanel and click on Cron Jobs. Then click on Standard.
Where it says "Command to run:" type
Set the time you want the Cron Job to run in the Minute(s) and Hour(s) boxes.
Warning: Do not do this in Hour(s) or Minute(s) or you account can be suspended for too much CPU usage. Here's the rest of the instructions:
Now it's time to say when it will backup the DBs. If you want to run it once a week, pick a day from the Weekday(s) box. If you want to run it once a month, select a date from the Day(s) box and leave the Month(s) box at Every Month.
Click Save Crontab and you're done.
Note: This only works for cPanel software.
You may use the script to backup if u dont have cPanel.
But you wont be able to use this tutorial without cPanel.
PS: You can make the script to email the backup,
or upload it to the directory you set in the script.. (requires setup)
This is only mySQL backup, not the whole site!!
and em.. its very usefull for forums..
Open the .php file in the attached .zip file & edit it.
Upload the script to your site (create a new directory) for example yoursite.com/sqlbackup.
CHMOD the new directory (folder) to 777.
Go to your CPanel and click on Cron Jobs. Then click on Standard.
Where it says "Command to run:" type
Change the username to your username, and edit the path to where the script is located./home/username/public_html/sqlbackup/backupdb.php
Set the time you want the Cron Job to run in the Minute(s) and Hour(s) boxes.
Warning: Do not do this in Hour(s) or Minute(s) or you account can be suspended for too much CPU usage. Here's the rest of the instructions:
Now it's time to say when it will backup the DBs. If you want to run it once a week, pick a day from the Weekday(s) box. If you want to run it once a month, select a date from the Day(s) box and leave the Month(s) box at Every Month.
Click Save Crontab and you're done.
Note: This only works for cPanel software.
You may use the script to backup if u dont have cPanel.
But you wont be able to use this tutorial without cPanel.
PS: You can make the script to email the backup,
or upload it to the directory you set in the script.. (requires setup)
This is only mySQL backup, not the whole site!!
and em.. its very usefull for forums..