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
gefragt vor 9 Monaten390 Aufrufe
4 Antworten
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
beantwortet vor 9 Monaten
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
EXPERTE
beantwortet vor 9 Monaten
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
beantwortet vor 9 Monaten
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
beantwortet vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen