Knowledgebase

How to send WHM server backups to remote storage (Google Drive, S3 or SFTP)

This guide shows you how to configure WHM backups to remote storage such as Google Drive, Amazon S3 (or any S3-compatible storage) or an SFTP server. A backup stored only on the same server is lost if that server's disk fails or the server is hacked, so an off-server copy is essential.

Step 1: Turn on WHM backups

  1. Log in to WHM as root and open Backup Configuration.
  2. Set Backup Status to enabled.
  3. Choose the Backup Type (compressed is the usual choice) and the schedule: daily, weekly and/or monthly, with how many copies to keep (retention).
  4. Under Files, choose to back up user accounts and system files. Under Databases, the per-account option is enough for most servers.
  5. Pick a local backup directory with enough space, for example /backup.
  6. If disk space is tight, enable the option to keep backups only on the remote destination, so local copies are removed after a successful transfer.

Step 2: Add a remote destination

Scroll to Additional Destinations, choose a destination type and click Create new destination.

Google Drive

  1. In the Google Cloud Console, create a project, enable the Google Drive API, and create an OAuth client ID. WHM's form explains the type and redirect settings it needs.
  2. Paste the Client ID and Client Secret into WHM and generate the credentials. Sign in with the Google account that will hold the backups and allow access.
  3. Set a Folder name for the backups.

Note: backups count toward the Google account's storage quota. Server backups can be large, so check that the account has enough space.

Amazon S3 or S3-compatible storage

  1. Create a bucket and an access key limited to that bucket.
  2. Choose Amazon S3 or S3 Compatible in WHM, then enter the bucket, folder, access key ID and secret key (and the endpoint for S3-compatible providers).

SFTP

  1. Prepare a storage server or storage box with SSH access.
  2. Enter the host, port, folder and username. Key authentication is safer than a password.

Step 3: Validate and test

  1. Save the destination, then click Validate. WHM uploads and deletes a test file.
  2. Run a backup manually or wait for the schedule, then check that files arrive in the remote storage.
  3. Most important: try restoring one account from the remote copy (WHM > Backup Restoration) so you know it works before a real emergency.
JetBackup: many cPanel servers, including EgWeb's, use JetBackup. It has its own destinations (S3, SFTP and more) and lets clients restore files themselves from cPanel. If your server has JetBackup, ask support which tool to use so you do not run two heavy backup jobs at the same time.

Servers without cPanel: rclone

On a plain VPS, rclone can copy a backup folder to Google Drive, S3 and many other services. Configure a remote with rclone config, then sync a folder, for example from a nightly cron job:

rclone copy /root/backups gdrive:server-backups --transfers 4

Use copy rather than sync unless you understand that sync also deletes remote files that no longer exist locally.

Common problems

  • Validation fails: wrong credentials, a firewall blocking the outgoing connection, or an expired Google token. Regenerate the credentials.
  • Backups fill the local disk: lower retention or keep backups only remotely (see How to find large files and free up disk space).
  • Backup runs slowly in busy hours: schedule it at night.

Frequently asked questions

How many copies should I keep?

A common setup is several daily copies plus weekly and monthly ones. Choose according to your storage space and how far back you may need to go.

Does EgWeb back up my server?

It depends on your service and plan. Check with support what is included, and keep your own off-server copy too. See also How to back up and restore your website.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • whm backup, remote backup, google drive, amazon s3, sftp, rclone, jetbackup, server backup

Was this answer helpful?

0 Users Found This Useful