Security & SSL

How to Set Up Automatic Website Backups on Your Hosting

Learn step by step how to enable and schedule automatic website backups from your hosting control panel so you never lose your work again.

Close-up of a rusty padlock on a weathered wall, showcasing vintage charm.

An automatic website backup on hosting is a scheduled copy of all your files and database that is generated without manual intervention. Setting it up correctly means that, in the event of any failure, hack, or human error, you can restore your site within minutes.

Without active backups, a single accident can erase weeks of work. In this guide you will see how to schedule automatic backups from the most common control panels: cPanel, Plesk, and DirectAdmin, and what criteria to follow so those backups are genuinely useful.

Why Automatic Backups Are Non-Negotiable

Many site owners assume their hosting already makes backups "by default." In reality, frequency and retention vary enormously between providers, and some basic plans do not include guaranteed backups.

The main risks that automatic backups neutralize include:

  • Hacks and malware: restore to a clean point before the infection.
  • Update errors: a plugin, theme, or code change that breaks the site.
  • Accidental deletion: files or database records deleted by mistake.
  • Server failures: disk corruption or other provider-side issues.

The golden rule in recovery is the 3-2-1 strategy: 3 copies, on 2 different media, 1 offsite. Your hosting is only one of those media.

Setting Up Automatic Backups in cPanel

cPanel is the most widely used panel in shared hosting. It offers two tools: Backup (manual) and Backup Wizard / JetBackup (automatic, if the provider activates it).

Using cPanel's Automatic Backup Feature

  1. Log in to cPanel and find the Files → Backups section.
  2. If your provider includes JetBackup, open that module: you will find a calendar to schedule daily, weekly, and monthly backups.
  3. Select what to back up: Home Directory (files) + MySQL Databases.
  4. Define the destination: local folder, remote FTP, Google Drive, or Amazon S3.
  5. Save the schedule and verify that the first backup generates correctly.

If your plan does not include JetBackup, check whether your provider offers backups from their own control panel (outside of cPanel).

Database Backup with a Cron Job

For MySQL/MariaDB databases you can also create a cron job in cPanel (Advanced → Cron Jobs) with a command like:

mysqldump -u user -p'password' db_name | gzip > /home/user/backups/db_$(date +\%F).sql.gz

Schedule this cron daily (at 00:30, for example) and you will have a compressed dump of your database every night.

Setting Up Automatic Backups in Plesk

Plesk includes a native backup manager that is far more complete than cPanel's default offering.

  1. From the Plesk panel, go to Websites & Domains → your domain → Backup Manager.
  2. Click Schedule and choose the frequency: daily, weekly, or monthly.
  3. Enable Remote FTP Storage if you want copies outside the same server.
  4. Check both Website files and Databases.
  5. Set how many backups to keep (recommended retention: minimum 7 days).

Plesk can send an email notification each time a backup completes or fails. Enable it — it is your first warning that something went wrong.

Setting Up Automatic Backups in DirectAdmin

DirectAdmin has a built-in tool called Backup/Transfer, available at the admin level. On shared hosting, the provider usually activates it at the system level.

  1. Go to Your Account → Create/Restore Backups.
  2. Select the items to back up: domains, databases, emails, DNS configuration.
  3. Choose the frequency with which the provider schedules automatic backups (if you have administrative access, you can configure this yourself under Admin → Scheduled Tasks).
  4. For remote backups, configure an FTP account under Admin → Backup Manager → FTP Server.

Best Practices to Make Your Backups Actually Useful

Having scheduled backups is not enough if you do not follow these rules:

Practice Why It Matters
Test restoration at least once a month A backup that won't restore is worthless
Store copies in at least 2 different locations If the server fails completely, you need the offsite copy
Minimum 7-day retention Hacks can take days to detect
Encrypt backups containing sensitive data Protects your users' data in case of a breach
Trigger a backup before every major update Updates are the highest-risk moment for site breakage

For e-commerce projects or frequently updated sites, consider backups every 6 hours or even real-time incremental backups using tools like BlogVault (WordPress) or custom rsync scripts.

If you manage multiple sites or want a comprehensive solution, elenlace.com offers hosting plans with included backup management and proactive monitoring.

You can also explore other protection topics in our SSL security and backups section.

Key Takeaways

  • Automatic backups are the first line of defense against hacks, errors, and server failures.
  • cPanel (with JetBackup), Plesk, and DirectAdmin all allow scheduling copies without manual intervention.
  • Apply the 3-2-1 rule: 3 copies, 2 media, 1 offsite location.
  • Minimum recommended retention: 7 days of backup history.
  • Test restoration periodically — a backup that won't restore protects nothing.
  • Automate an extra backup before every major update.

Don't have automatic backups active yet? Choose a hosting plan that includes them or set them up today. elenlace.com can help you pick the right solution for your site and get everything running so you never have to worry about losing your data again.

FAQ

How often should I back up my website?

It depends on how frequently you update the site. For blogs or informational sites, a daily backup is sufficient. For online stores or sites with active forms, every 6–12 hours is ideal, or even real-time incremental backups.

Does my hosting already make automatic backups?

Many providers include automatic backups, but retention may be only 24–48 hours and they are not always guaranteed on basic plans. Always verify with your provider and set up your own additional copy in an external location.

What is the difference between a file backup and a database backup?

A file backup covers your PHP code, images, templates, and documents. A database backup covers all dynamic content: posts, users, orders, and settings. You need both for a complete site restoration.

Can I restore a backup myself or do I need to contact support?

In cPanel, Plesk, and DirectAdmin you can restore backups from the panel itself without contacting support. However, if the server is completely down, the provider will need to intervene. Having a local or cloud copy lets you act faster in those situations.

Useful resources

Other providers and guides worth comparing:

← All