Storing Your Backups with Amazon S3 via WHM

Note that you will need root access in order to use these directions.

Backups are a vital part of any healthy website configuration. Unfortunately, valid backups are often neglected, or not kept. All too often there are mistakes, files get changed or deleted by mistake, hard drives fail, and so on. Keeping regular, valid backups helps to restore your data in one of these instances.

cPanel makes maintaining backups of your cPanel accounts easy. It does this via the Backup Configuration interface in your Web Host Manager( WHM ). WHM’s Backup Configuration provides lots of configuration options. One key option is the ability to store your backups off-server with Amazon S3.

Note: To setup Amazon S3 you will need your Secret Access Key. It is strongly recommended that you create an IAM User for your Amazon S3.

Sounds great! How do I store my backups with Amazon S3?

  1. Login to WHM
  2. Backup Configuration icon

    Open the Backup Configuration interface

  3. Enable under Global Settings

    Click Enable

  4. Backup Type - Compressed

    Ensure that Backup Type is set to Compressed

  5. Scheduling and Retention settings

    Choose your desired Scheduling and Retention options. You will need to review these options and decide what will work best for you. For example, if your site doesn’t update often, you may be able to backup once a month, or once a week. It is highly recommended to limit the number of backups that you keep to prevent using excess disk space.

  6. Backup Accounts - Select Users

    Select Backup Accounts and then click Select Users.

  7. Backups On / Off toggle

    In the new browser tab under the Backups column click the On/Off button to enable or disable your users’ backups.

  8. Backup System Files checkbox

    If desired, click to enable Backup System Files

  9. Additional Destinations dropdown

    Under Additional Destinations ensure that the Destination Type is set to Amazon S3, and click Create new destination

  10. Destination details

    Fill in a descriptive Destination Name, the Bucket name of your Amazon S3 bucket that you wish to backup to, your Access Key ID, and the Secret Access Key

  11. click gray Create new destination button

    Finally, click Save and Validate Destination

You should now see a success message confirming that WHM is able to communicate with Amazon S3. Next time WHM creates backups for your server you will see your backups as an ‘object’ in your S3 interface. Congratulations! You are now setup to automatically upload your backups to Amazon’s S3 service!

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

19 thoughts on “Storing Your Backups with Amazon S3 via WHM

  1. I set this up and when I log into AWS there are tens of thousands of files in the bucket. I am unsure of how I would restore the site with these. So a couple questions. Is this method being used as a way to use an external storage for Inmotions backup solution –third party software or whatever it may be. Or is this a disaster recovery solution that can be restored outside of Inmotion? 

  2. Thank you for your tutorial. Now I can send my web server backup on my S3 account but how can I use it if one of my sites need to use its backup, please? How to “tell” to my Linux VPS (with WHM and cPanel) how to go on S3 and take the backup and reinstall it on this specific account, please?

     

    1. If I understand you correctly, it sounds like you’re interested in restoring a site from S3. This article merely describes an archiving process. If you want to restore one of those backups, you will need to download one from S3 and restore it manually, which our support team can help with. However, for an automated restoration process, you will want to seek out a third party system or contact a sysadmin or developer who can help you write one.

    1. As a VPS owner, you don’t have a monthly allowance. You can use up to the full bandwidth available for your plan, however file transfer is not likely to use enough bandwidth to take away resources from other services.

  3. Ok il will not bother about the legacy backup. Here is what I have now in the bottom part of the page once I have validated and got the message: Success: Backup configuration successfully saved.

    Destination: arn:aws:iam::854735260719:user/mf
    Transport: Amazon S3™
    System Backup: Disabled
    Status: Enabled
    Actions: Edit  Validate  Delete  Disable

    Just to make sure, the only thing that bothers me is why is System Backup disabled? is this normal? 

    thank you again for your great help and support, I really appreciate the constant support at inmotion for whatever thing we need.

    1. “System Backup” just refers to the system level files, and settings. This is optional, but if you wanted to move your accounts to a different server this would help with restoring the settings on your non-account system level changes.

    2. Thank you for these instructions, however, unless I missed it, they do not mention what to do for the “Backup SQL Databases” options. Can you please advise which option should be selected? Per Account Only (default)? Entire MySQL Directory? Per Account and Entire MySQL Directory? Thank you!

  4. Yes everything went fine. I got the following confirmation: Success: Backup configuration successfully saved in Amazon S3

    Now I have another message on top: The legacy backup system is currently disabled. Click here to manage the legacy backup system.

    Is it important to have this legacy backup also enabled?

    1. I believe that cPanel is planning to remove the legacy backup option in a future release. There is no need to enable it if you aren’t already using it.

  5. All fine now. I could enter although I needed some help with

    https://www.inmotionhosting.com/support/questions/general-information/i-cannot-login-as-root-to-my-vps

    to understand that root is the username to use. Thank you

  6. I logged in AMP, then clicked on WHM, next page asked for login details to cpanel, but then I do not see the Backup configuration interface in cpanel, there is only backup and backup wizard, both have nothing to do with what is described on this page. So where to find this backup configuration to store backups with amazon s3. Thank you!

    1. To save on disk space, make sure you have enabled the “Compressed” option, deactivate the “Backup System Files”, consider backing up fewer users, decrease or remove retention options, disable the “Retain backups in the default backup directory” option, etc.

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X