Collapse

Announcement

Collapse
No announcement yet.

How to download backup from amazon S3 bucket

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to download backup from amazon S3 bucket

    May I have the steps to recursively download backup from Amazon Bucket ?

  • #2
    Hi Neha,

    s3cmd is an utility that can be used to download the backups from S3 bucket.

    1. Install s3cmd.

    Code:
    yum install s3cmd
    2. Type below command to check if it works.

    Code:
    s3cmd
    3. The output returned might be as below,

    ERROR: /home/user/.s3cfg: No such file or directory
    ERROR: Configuration file not available.
    ERROR: Consider using --configure parameter to create one.

    4. As suggested, we will need to configure using --configure command.

    Code:
    s3cmd --configure

    5. You will be prompted with multiple questions about your Amazon storage server. Enter correct details on the prompt screen.

    Code:
     New settings:
     Access Key: [your access key]
     Secret Key: [your securet key]
     Encryption password: Password
     Path to GPG program: /usr/bin/gpg
     Use HTTPS protocol: False
     HTTP Proxy server name: 
     HTTP Proxy server port: 0
     Test access with supplied credentials? [Y/n] Y
     Please wait...
     Success. Your access key and secret key worked fine :-)
     Now verifying that encryption works...
     Success. Encryption and decryption worked fine :-)
     Save settings? [y/N] y

    That's it and you shall now be able to use s3cmd to upload/download files Amazon S3 server.

    6. Command to recursively download backup:

    Code:
    s3cmd get --recursive s3://bucket_name/bucket_project/backup_directory/backup/  /Amazon
    Where, s3://bucket_name/bucket_project/backup_directory/backup/ is the backup location where backups are stored and you want to download to your local machine.
    /Amazon, Folder on your local server where you want to get the backup.

    Comment

    Working...
    X