Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Back Up public_html to a Remote Server Automatically with cPanel

Use WHM Backup Configuration and an Rsync Additional Destination to send cPanel account backups containing public_html to a remote server automatically. This guide covers SSH keys, retention, validation, cron timing, user-level alternatives, protocol trade-offs and restore testing.
Length10 min Posted Quest giverVGSources Team

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use WHM’s scheduled backup system and an Rsync Additional Destination. In WHM → Backup → Backup Configuration, enable backups, set retention, add the remote server with its hostname, SSH port (22 by default), username, destination directory and private key, then select Save and Validate Destination. Run one backup and a restore test before trusting the schedule.

This approach backs up the cPanel account that contains public_html, rather than silently mirroring only that directory. Keep a local copy as well as the remote destination: cPanel warns that remote transfers take additional processing time and strongly recommends an Additional Destinations location.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before configuring an automatic remote backup

The WHM method requires root or reseller-level access with permission to configure server backups. Prepare these items first:

  • A remote server with enough storage for the backup sets and retention period.
  • A dedicated remote account and a directory used only for backups.
  • The remote hostname or IP address, SSH port, username and destination path.
  • An SSH private key on the cPanel server, with the matching public key installed for the remote account. cPanel recommends key authentication for Rsync destinations.
  • A retention policy that fits both the local backup volume and the remote server’s capacity.
  • A test account or staging location where you can restore a representative file without affecting production.

Limit the remote account’s permissions to its backup directory. Do not store its private key, password or configuration files under public_html, where a web-server misconfiguration could expose them.

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Set up WHM to send backups to the remote server

1. Create the remote account and directory

On the destination server, create a separate account for backups and a directory that is not used by a public website. Give the account write access to that directory and read access for verification and restore work. Using a dedicated account makes it easier to revoke access, rotate keys and identify backup traffic in logs.

Record the exact path in the form expected by the destination server. A path that exists for an interactive administrator may not exist for the restricted backup account, so verify it while logged in as that account.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Prepare SSH key authentication

  1. Generate or select an SSH key on the cPanel server. Keep the private key on the cPanel host and protect its file permissions.
  2. Install the matching public key in the remote account’s authorized-key configuration.
  3. Confirm that the remote account can authenticate without an interactive password prompt and can write to the backup directory.
  4. Check that the selected SSH port is reachable from the cPanel server. The Rsync destination port documented by cPanel is 22 by default; use another port only when the remote SSH service is configured for it.

Key authentication is preferable for an unattended job because a scheduled process cannot answer a password prompt. If the key is encrypted with a passphrase, ensure your server’s backup design supports non-interactive use; otherwise validation or the scheduled transfer will stop at authentication.

3. Enable backups and choose retention

  1. Sign in to WHM.
  2. Open Backup → Backup Configuration.
  3. Enable the backup system.
  4. Choose the accounts and backup type required by your recovery plan.
  5. Set retention values for daily, weekly or other available backup sets according to your storage budget and recovery needs.
  6. Leave local backups enabled unless you have a documented reason not to keep them. cPanel recommends retaining a local copy as well as a remote destination.

Retention is a recovery decision, not just a storage setting. A single newest archive protects against hardware loss but not against a file that was deleted or corrupted days earlier. Longer retention gives you more historical restore points while consuming more space and extending transfer time.

4. Add an Rsync Additional Destination

  1. In Backup Configuration, find Additional Destinations and choose Rsync.
  2. Enter the remote hostname, port, username and destination directory.
  3. Select or provide the SSH private key that corresponds to the public key installed for the remote account.
  4. Set the destination timeout within cPanel’s documented range of 30 to 300 seconds. A short timeout can fail on a slow or distant server; a longer value lets a sluggish connection wait longer before being marked unsuccessful.
  5. Save the destination and click Save and Validate Destination.

Validation is a prerequisite, not a substitute for a complete transfer test. It confirms that cPanel can use the destination settings, but it does not prove that a full backup will fit, finish within the schedule window or be readable during a restore.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

5. Run a real backup and inspect the result

  1. Start one backup manually after validation.
  2. Watch the WHM backup status and notification output for completion or transfer errors.
  3. Log in to the remote server and confirm that the expected archive or backup files exist in the destination directory.
  4. Check ownership and permissions so the remote account can read the files needed for recovery.
  5. Extract or restore one representative file into a staging location. For a website, include a file from public_html and, where relevant, test the account’s database separately.

Only after this test should you rely on the recurring schedule. A green transfer message demonstrates delivery, not recoverability.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How cPanel schedules the job

cPanel’s documented default backup cron entry is:

0 2 * * * /usr/local/cpanel/bin/backup

That runs at 2:00 AM in the server’s local time, according to cPanel Support (2023). “Local time” means the timezone configured on the cPanel server, not necessarily your own timezone or the destination server’s timezone. Confirm the server clock and timezone before choosing a maintenance window.

WHM administrators can change the schedule in Configure cPanel Cron Jobs. To force an immediate run for testing or recovery preparation, execute:

/usr/local/cpanel/bin/backup --force

A forced run is useful after changing credentials, destination paths or retention. It can also overlap with the normal schedule if started at the wrong time, so check for an existing backup process before launching another one and allow enough time for large accounts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

What an automatic cPanel backup contains

WHM’s scheduled backup system works at the account level. The account archive includes the files in that account’s public_html, along with the other account data selected by the backup configuration. This is different from a simple directory mirror: an account backup is packaged for cPanel recovery and may include configuration and service data in addition to website files.

If your requirement is specifically “keep a second copy of this one directory,” confirm that the chosen cPanel backup type and retention settings meet that requirement. Do not assume that a successful account archive is an immediately browsable copy of public_html; test extraction and identify the path inside the archive before an emergency.

Incremental backups change the destination options. cPanel states that if you use the Incremental backup type, you can only use Rsync additional destinations. Therefore, an incremental design cannot use an FTP or WebDAV Additional Destination as a substitute.

If you have cPanel access but no WHM

Shared-hosting customers commonly have access to Backup or Backup Wizard but not WHM. The user-level workflow is different:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Backup or Backup Wizard in cPanel.
  2. Create a full account backup, choosing the available destination option.
  3. Supply the remote FTP or SCP server details requested by the interface.
  4. Wait for the archive to be created and transferred, then verify it on the remote server.

A full account backup includes the account’s public_html files. However, cPanel states that a full backup cannot be automatically restored from the cPanel user interface. Recovery requires extracting the archive and uploading the public_html contents, or obtaining help from the hosting provider or a WHM administrator. This makes user-level backups useful for off-site copies but less automated at restore time.

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Rsync, FTP, WebDAV and SCP: which method fits?

The right method depends on access level, authentication, backup format and how much recovery automation your provider supports. The following comparison uses only capabilities documented for the cPanel workflows above.

Method Where it is available Authentication and transport details Backup form Incremental support Restore and operations considerations
Rsync Additional Destination WHM Backup Configuration Remote hostname, port (22 by default), username, destination path and SSH private key; cPanel recommends key authentication Transfers cPanel backup data to the remote destination Supported; cPanel says Incremental backup type can use only Rsync Additional Destinations Best fit for an SSH-capable server and unattended WHM scheduling; validate the destination, inspect logs and perform restore tests
FTP Supported as a WHM Additional Destination; also available for cPanel full-account backup destinations where the provider exposes it FTP credentials and server details required by the interface; encryption and exact mode are not stated in the supplied cPanel material Full account archive in the cPanel user-level workflow Not stated for FTP; it cannot be used for an Incremental WHM destination Useful when the remote provider offers FTP but not SSH; restoration from a cPanel full backup is not automatic in the user interface
WebDAV Supported as a WHM Additional Destination WebDAV endpoint and credentials; exact security options are not stated in the supplied cPanel material WHM backup data sent to the configured destination Not stated for WebDAV; Incremental WHM backups require Rsync Choose only when the destination service is designed for WebDAV and you have verified listing, read access and restore handling
SCP Available as a remote destination in the cPanel Backup or Backup Wizard user-level workflow Remote SSH/SCP details requested by the cPanel interface; exact scheduling behavior without WHM is not stated Full account .tar.gz archive Not stated; the cPanel Incremental restriction applies to WHM Additional Destinations Suitable for an off-site archive when you lack WHM; restore requires extraction and uploading files or provider/WHM assistance

For a server administrator who controls an SSH-capable destination, Rsync is the practical default because it integrates with WHM scheduling and is the only Additional Destination documented for incremental backups. FTP, WebDAV or SCP can still be appropriate when a hosting provider requires one of those protocols or does not permit SSH key access.

Security controls that prevent a backup from becoming a new breach

  • Use a dedicated destination account. Do not reuse the account that administers the remote server.
  • Restrict directory permissions. Give the account access to the backup directory only, not the entire remote filesystem.
  • Protect the private key. Keep it outside public_html, restrict its permissions and rotate it when staff or hosting access changes.
  • Separate web and backup paths. A backup directory should not be served by the web server or exposed through a predictable URL.
  • Review notifications and logs. A failed transfer, full destination or expired key must produce an alert that someone actually monitors.
  • Keep more than one copy. The remote server protects against loss of the cPanel host, while a local copy can make a quick restore possible when the network or destination is unavailable.

Retention and storage planning

Estimate storage from the size of the generated backup set, the number of retained versions and any local copy. Account archives can contain more than the visible website directory, so size the destination for the configured account data rather than only the current public_html total.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a retention policy that answers three questions:

  1. How far back must you recover if an unwanted change is discovered late?
  2. How many recent restore points are needed during active development or content publishing?
  3. What is the response when the destination reaches capacity?

When storage is tight, do not simply delete the newest backup. First identify which retention tier is consuming space, confirm that at least one known-good local and remote restore point remains, then adjust retention and run a verified backup.

Troubleshooting failed validation or transfers

Validation fails immediately

  • Recheck the hostname, port, username and destination path for typographical errors.
  • Confirm that the public key belongs to the private key selected in WHM.
  • Test that the remote account can log in from the cPanel server and write to the target directory.
  • Check firewall rules on both servers, including a nonstandard SSH port if one is configured.

Validation succeeds but the scheduled transfer fails

  • Look for destination-capacity errors and compare free space with the size of the generated backup.
  • Review the timeout setting. cPanel documents a range of 30–300 seconds; a slow connection may require a higher value.
  • Check whether the backup overlaps with another heavy task or exceeds the available maintenance window.
  • Review cPanel notifications and server logs for authentication expiry, permission errors or interrupted connections.

The remote files exist but cannot be restored

  • Verify that the remote account can read the files, not merely create them.
  • Confirm that the archive is complete and has a plausible size rather than being a zero-byte or partial file.
  • Extract a copy in staging and inspect the location of public_html before touching production.
  • If using a cPanel full-account archive without WHM, contact the provider when account metadata or database restoration is required; the cPanel interface cannot automatically restore that archive.

A repeatable verification routine

Schedule a recurring operational check rather than waiting for a disaster:

  1. Confirm that the last scheduled job completed at the expected server-local time.
  2. Check the remote destination for a new backup and verify its timestamp, ownership and readable size.
  3. Review notifications for warnings even when the job reports success.
  4. Restore one small website file to staging and compare it with the live copy.
  5. At a longer interval, restore a complete account or representative staging copy, including the data your recovery plan depends on.
  6. Record the result, the restore duration and any key, permission or capacity changes needed before the next test.

This routine catches the most dangerous failure mode: a backup process that appears successful but produces files nobody can use.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.