Regular backups are essential to secure your website. In this article, you will learn how to protect your data by using "cPanel automatic backups." Continue reading our guide full of detailed steps and tips.
cPanel is a user-friendly web hosting control panel and offers an efficient tool for automating backups of your website. The first step is to log in to your cPanel account. Then, click on "Backup" or "Backup Wizard." Here, you can select the "Full Backup" option to specify which files and databases will be included in the backup.
To enable automatic backups, you need to create scheduled tasks called "Cron Jobs." These tasks will automatically initiate backup processes at the times you specify. Read further sections for detailed instructions on how to set this up.
Backup scheduling ensures that your data remains up-to-date. First, you need to decide how often you want to back up. Depending on the frequency of updates to your website, you can choose daily or weekly backups. In cPanel, go to the "Cron Jobs" section and add a new cron job.
In the "Command" box, enter the backup command. For a full backup, the command might look like this: /usr/local/cpanel/scripts/pkgacct <username>. Then, set the schedule: daily, weekly, or monthly. Once done, click the "Add New Cron Job" button.
/usr/local/cpanel/scripts/pkgacct <username>
cPanel allows you to choose which files to include in your backup. It’s common practice to back up your website files, databases, and email accounts. Go to the "Backup" section and review the "Full Backup" or "Partial Backup" options.
A full backup includes all your files and databases. A partial backup only includes specific files or databases. Backing up your website files, MySQL databases, and email settings minimizes the risk of data loss.
To automate backup tasks in cPanel, you use "Cron Jobs." Go to the "Cron Jobs" section and add a new job. Set the schedule and enter the backup command. For a weekly backup, you can use the following parameters:
This will schedule the backup to run every Sunday at 2:00 AM. After entering the command, click the "Add New Cron Job" button to complete the process.
Transferring your backup files to external storage enhances your data security. You can use SFTP or FTP to transfer backup files to an external server. In cPanel, go to the "Backup" section and use the "Download a Full Account Backup" option to download your backup to your computer.
Alternatively, you can automate the process by using an FTP uploader to regularly upload your backups to a specified external server. Enter your FTP details and file paths to automate the process.