How to transfer data from your Existing Server to Aws S3

Amazon S3 is a pretty good and inexpensive choice for website data storage. You can save a lot of money uploading website data such as user uploads to S3 instead of your hosting server.

I found it a little difficult to understand how s3 migration work…


This content originally appeared on DEV Community and was authored by Lakhveer Bawa

Amazon S3 is a pretty good and inexpensive choice for website data storage. You can save a lot of money uploading website data such as user uploads to S3 instead of your hosting server.

I found it a little difficult to understand how s3 migration works and did not find any simple tutorial on that. So here I am sharing the steps that can help you to migrate data to the S3 bucket.

Steps:

  1. Install Aws Cli on your existing Server
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Reference: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

  1. Go to the IAM section in your AWS console and create a user will full administration access. Note down the Access Key Id and Access key secret provided to you after creating the user account.

  2. Configure the Aws Cli on your Server using

aws configure

command, and provide Access Key Id and secret that you created before.

  1. run aws s3 list to see the list of s3 buckets created inside your account( create one if you haven't done so).

  2. Run the following command to copy the files to s3 bucket

aws s3 cp directory-to-be-uploaded s3://bucket-name-here --recursive

Thanks for reading.


This content originally appeared on DEV Community and was authored by Lakhveer Bawa


Print Share Comment Cite Upload Translate Updates
APA

Lakhveer Bawa | Sciencx (2021-05-14T03:34:56+00:00) How to transfer data from your Existing Server to Aws S3. Retrieved from https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/

MLA
" » How to transfer data from your Existing Server to Aws S3." Lakhveer Bawa | Sciencx - Friday May 14, 2021, https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/
HARVARD
Lakhveer Bawa | Sciencx Friday May 14, 2021 » How to transfer data from your Existing Server to Aws S3., viewed ,<https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/>
VANCOUVER
Lakhveer Bawa | Sciencx - » How to transfer data from your Existing Server to Aws S3. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/
CHICAGO
" » How to transfer data from your Existing Server to Aws S3." Lakhveer Bawa | Sciencx - Accessed . https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/
IEEE
" » How to transfer data from your Existing Server to Aws S3." Lakhveer Bawa | Sciencx [Online]. Available: https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/. [Accessed: ]
rf:citation
» How to transfer data from your Existing Server to Aws S3 | Lakhveer Bawa | Sciencx | https://www.scien.cx/2021/05/14/how-to-transfer-data-from-your-existing-server-to-aws-s3/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.