Skip to content

Using WHM Backup / Restore with AWS S3

AWS S3 storage is a inexpensive and reliable way to create off-site backups for your server. Once configured WHM/CPanel and S3 is fully automated for the backup processing, restoring does mean manually copying the backup back to your server.

Please refer to 'Using WHM Backup/Restore' for general setup. It is best if you have this process complete so that only the S3 setup needs to be added.

  1. Create account & Login to Amazon https://aws.amazon.com/
  2. Open your AWS Management Console
  3. In the storage group click S3 S3_1.png
  4. Select "Create Bucket" S3_2.png S3_3.png
  5. In the upper right, select your name and then "Security credentials" S3_5.png
  6. Accept any security warnings
  7. Select the + sign to the left "Access Keys" S3_6.png Then click "Create new Access Key" S3_7.png
  8. You can download the key or open by clicking "Show Access Key" S3_7.png
  9. Return to WHM and go to Backup → Backup configuration. Make sure all settings have been completed
  10. At the bottom of the backup page under "Additional destinations" make sure the destination type in the box is "Amazon S3" Then click on "Create new destination"
  11. Set the information from above, Use the information from above S3_11.png
  12. Once these fields are completed, click "Save and Validate Destination"
  13. If all information is added correctly, the page backups display a message that says "Success: Destination saved"
  14. You should be able to see the backups in S3 after the next backup cycle

To restore from S3 you need to copy the WHM backup '.tar' file back to '/backups' directory. At the moment this is a fully manual process search google for "transfer from s3 to webserver" the usual method is to use 's3cmd' which has an excellent how-to page You will need the security credentials from above, do not forget to keep them for the restore!