Difference between revisions of "Using WHM Backup/Restore with AWS S3"

From aMember Pro Documentation
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 13: Line 13:
 
#Accept any security warnings
 
#Accept any security warnings
 
#Select the + sign to the left "Access Keys"<br />[[file:s3_6.png|300px]]<br />Then click "Create new Access Key"<br />[[file:s3_7.png|300px]]
 
#Select the + sign to the left "Access Keys"<br />[[file:s3_6.png|300px]]<br />Then click "Create new Access Key"<br />[[file:s3_7.png|300px]]
 
+
#You can download the key or open by clicking "Show Access Key"<br />[[file:s3_7.png|300px]]
Best to download the file so you can save your credentials, especially since you can not see them once the initial dialog box will be closed with this information, you can see the key Access from the message popup when you click on the link "Show Access Key", which also no longer be available once the dialogue box closed,
+
#Return to WHM and go to Backup → Backup configuration. Make sure all settings have been completed
 
+
#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"
8- Connect to WHM and go to Backup → Backup configuration. Make sure that backups are allowed for all users,
+
#Set the information from above, Use the information from above<br />[[file:s3_11.png|300px]]
 
+
#Once these fields are completed, click "Save and Validate Destination"
9. 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"
+
#If all information is added correctly, the page backups display a message that says "Success: Destination saved"
 
+
#You should be able to see the backups in S3 after the next backup cycle
10- Use the information in the boxes once select
+
 
+
Destination name: Regardless of how you want your backup folder is named in the WHM, it will not affect the connection to the server,
+
 
+
Folder: Name of the file that was created to keep the backups. If this field is left blank, the basket will be used root,
+
 
+
Access Key ID and Secret Access Key: They are both provided in the "Show Access Key" section to your secure credential and the downloadable file when you go to page of security credentials. You can copy / paste this information from you that is provided by Amazon.
+
 
+
Timeout: Time, in seconds, that a server will wait for a response from the Amazon server remotely. 30 seconds by default will be sufficient for most backups, but this figure can be increased if you experience timeouts losque you load the backups.
+
 
+
11. Once these fields are completed, click "Save and Validate Destination"
+
 
+
12. If all information is added correctly, the page backups display a message that says "Success: Destination saved"
+
 
+
13- You can now authorize the déamarrage backups and should be responsible in your Amazon S3 account. You can use it as root via SSH to force the start of backups,
+
 
+
 
+
  
 
=== Restore ===
 
=== Restore ===
 +
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 [http://s3tools.org/s3cmd-howto how-to page] '''You will need the security credentials from above, do not forget to keep them for the restore!'''

Latest revision as of 15:47, 29 December 2016

Contents

Introduction

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.

WHM Setup

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.

S3 Backup Setup

  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

Restore

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!