We all know how to use cPanel to create "instant backups", backups that only occur when you click a button, and only occur one time.
The drawback is that you have to remember to perform these backups. This becomes especially difficult if you have multiple cPanel accounts.
The script below will allow you to schedule a FULL cPanel backup to run at a regular interval. (A full backup will save all of your websites, databases, and emails per cPanel account.)
Save this as fullbackup.php in your home directory (one above public_html). Enter a new standard cron job with this command to run:
php /home/your-username/fullbackup.php(Be sure to replace your-username with your actual cPanel username.)
Also, be sure to schedule your backup about once or twice a week. If you schedule the backups too often, you may cause downtime on your server.
The script below is exactly the same, except that the backup file CANNOT be saved on the same account. Rather, you must deliver the backup file to a different computer or server.
Same file name and cron job as above.