BACKUP BACKUP BACKUP

Here is an easy script to help you backup your databases.

Please note that you are responsible for any backups of your data. Use the following to create an automatic backup of your site.

Note that this should be entered on one line as a cron job in your cPanel.

Code:

date=`date -R`; mysqldump -u"yourdbusername" -p"yourdbpassword" --all-databases > /home/YOURHOME/public_html/backups/xbackup_$date.sql; gzip -f /home/YOURHOME/public_html/backups/xbackup_*.sql


After this backup is created, you should download it to your hard drive in case it needs to be restored.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

FrontPage problems.

If your site is working properly and you cannot update with Front Page, try this; 1....

Where do my files go?

Q. Where do I put my HTML pages to replace the default home page? A. publish your...

Create and edit your site from cPanel.

When you login to your control panel Code:...

Limit SPAM with SPAMasassin

Log into cPanel and choose "Mail"....

How to make an immediate backup of my site.

This option in your control panel allows you to compress your directories and/or files located...

Powered by WHMCompleteSolution