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:
- 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
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.
Configure the Aws Cli on your Server using
aws configure
command, and provide Access Key Id and secret that you created before.
run
aws s3 list
to see the list of s3 buckets created inside your account( create one if you haven't done so).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
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.