AWS Bucket Backup

0

I am new in AWS, we have a website hosted in AWS S3 2 year back and the developer left and we need to backup the website but no idea how can i do that. Website still working. I am able to locate the website file but couldn't download all file together, when i select the Bucket then the download option is gray out, i install the AWS CLI when i try to download the bucket using aws s3 sync s3://[bucket-name]/ [local_directory]its throwing error ,"Fetal error :could not connect to the endpoint url..".

Wiz-Web
已提問 9 個月前檢視次數 390 次
4 個答案
1

Use the s3 cp command with the --recursive parameter to download an S3 folder to your local file system. The s3 cp command takes the S3 source folder and the destination directory as inputs and downloads the folder. Create a folder on your local file system where you'd like to store the downloads from the bucket, open your terminal in that directory and run the s3 cp command.

To download all the files in the S3 bucket, you can use the following command

aws s3 cp s3://YOUR_BUCKET/YOUR_FOLDER . --recursive 

This command will initiate the download process, and the files will be downloaded in the current working directory of the command prompt:

AWS
已回答 9 個月前
0

Hi, if download option is grayed out, it probably means that the user under which you operate doesn't have sufficient authorizations to read files (i,e objects in S3 terminology) in the bucket. You should have your auths upgraded or a use a different user with right credentials.

See https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-policy-alternatives-guidelines.html to determine which form of auths is most suited to your use case.

Best,

Didier

profile pictureAWS
專家
已回答 9 個月前
0

Hi Didier,

Thank you for your prompt reply. I can download individual files by selecting them one by one, my main requirement is to download the entire folder. As it contains numerous files and downloading them individually would be impractical, I attempted to use the Command Line Interface (CLI) to accomplish this, but unfortunately, it isn't connecting successfully.

Wiz-Web
已回答 9 個月前
0

Thanks, It establishes the connection but throws an error: 'Provided region_name 'xxxx' doesn't match a supported format.' I tried to change the format in the conf file to json, yaml, yaml-stream, text, and table, but all are throwing the same error

Wiz-Web
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南