Knowledgebase Home / WHM Backup to SSH Storage – backing up WHM to SSH & SFTP Storage

WHM Backup to SSH Storage – backing up WHM to SSH & SFTP Storage

WHM has the ability (if you are a root user) to back up the server and accounts to an SSH destination. By default, WHM will also always use the /backup (or other directory you set) to store the backups locally first. Because this consumes storage on the server, we recommend looking at a more flexible option such as JetBackup as opposed to the built in WHM backup option. Read more here:

First, we’ll need to create a user on our Storage VPS server for the WHM Backup to connect using. We’ll create a new user of “whmbackups” with a password of “TgdferG%cnSD34”.

Storage VPS - Add User CentOS 7


After creating a user on our Storage VPS, we’ll want to navigate to the home directory for the user and create a new directory, then assign a proper user/group to the directory.

Create new directory - Storage VPS


Because we’re logged in as the root user, when we create the new directory it will automatically have an owner & group of root. This must be changed to have an owner & group of the user account we created.


Moving forward, we’ll need to first ensure that the WHM Backup Configuration option is enabled by checking the box to “Enable Backups”.

WHM Backup - Enable Backups


For more information on the initial setup of the WHM Backup Configuration, please refer to the cPanel documentation here:


After ensuring the “Enable Backups” option is checked, navigate to the “Additional Destinations” tab. From the drop down menu choose “SFTP” and click “Create New Destination” next to it. Now we can begin to enter our connection information & settings for pushing the backups to our Storage VPS.

We will use the following configuration in this guide:

  • Destination Name: StorageVPS
  • Transfer System Backups: Yes, checked
  • Backup Directory: backups (we created this previously on our Storage VPS)
  • Remote Host: IP of your Storage VPS
  • Port: 22 (default unless you have changed the port)
  • Remote Account Username: whmbackups (we previously created this user account)
  • Authentication Type: Password (we will use password authentication for ease of use in this guide)
  • Remote Password: password for the user whmbackups that we previously created
  • Timeout: 30 (we can leave the default of 30)


WHM SFTP Backup Destination

WHM Backup to SSH Settings


Once you’ve completed all of the fields with the connection information, click “Save and Validate Destination” at the bottom of the page. If the information was valid, you will see what is shown on the image below.

WHM Backup Destination Validate


Additionally, once back on the Destinations page, you can also click the tab labeled “Validation Results” which will show the details of the previous validations.

WHM SFTP Backup Destination


Now that we have added the Storage VPS as the destination, you can use this destination for storing the backups after they’ve been generated. You’ll need to consult the cPanel documentation for the configuration of the backup job and its associated options. We do however, recommend using an application such as JetBackup which is more flexible than the built in WHM Backup options.

cPanel WHM Documentation:

Storage VPS Hosting:


How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

If the steps above listed in this article do not resolve your issue, please feel free to open a support ticket and we’d be happy to take a look. Looking for better web hosting? Sign up today and take 50% off your first month with promo code: 1stmonth50

Our Guiding Principles

  • Provide consistent, stable and reliable web hosting services.
  • Ensure rapid ticket response and quick resolutions to issues.
  • Never saturate or over-provision servers to ensure stability and speed for our customers.
  • Use only high quality enterprise-class hardware to ensure minimal downtime from hardware failures.
  • Provide clear pricing with no hidden fees or gotchas.