AWS, Cloud Computing

6 Mins Read

A Guide to Migrate On-Prem Windows Server Data to Amazon S3 using AWS DataSync

Overview

In today’s fast-paced digital landscape, organizations constantly seek efficient ways to store, manage, and access their data. One solution that has recently gained immense popularity is Amazon Simple Storage Service, commonly known as Amazon S3, a scalable and highly available object storage service offered by Amazon Web Services (AWS). Amazon S3 provides a reliable platform for data storage, and its flexibility makes it an ideal choice for businesses looking to migrate their data from on-premises servers to the cloud.

Introduction

This comprehensive guide covers the seamless data transfer using AWS DataSync from on-premises Windows servers to Amazon S3. This blog provides a step-by-step overview from comprehending the critical role that data migration plays in cloud adoption to utilizing the powerful features of AWS DataSync. With coverage of important subjects like configuring AWS DataSync agents and maximizing data transfer, this manual seeks to provide users with the information they need to ensure a smooth and effective migration process.

Pioneers in Cloud Consulting & Migration Services

  • Reduced infrastructural costs
  • Accelerated application deployment
Get Started

Steps to Prepare On-Premises Windows Server

Step 1: Choose the folder in your file explorer on your Windows, which contains the data you want to migrate to Amazon S3. Right click on it and click on properties.

win1

Step 2: Now click on share.

win2

Step 3: Click on the drop-down button. You will see the users list, and you can choose among those users to whom you want to give permission to this folder and click on share.

win3

win3b

Now, you have prepared your data for sharing. It is time to prepare AWS for data transfer.

Steps to Set up AWS DataSync agent

Step 1: Open the AWS console and navigate to AWS DataSync.

Step 2: On the AWS DataSync console, click on agents on the left panel and then click on Create Agent. These agents act as intermediaries, handling data movement between the source and destination environments.

data2

Step 3: Choose VMware ESXi as the Deploy agent and click on download image. It will start the downloading of the AWS DataSync agent image. You must deploy it on your on-premise Windows server before having VMware.

data3

Step 4: Extract the downloaded agent from the zip file. An AWS DataSync agent is a virtual machine (VM) appliance that AWS DataSync uses for storage discovery and data transfers. It acts as a bridge between your on-premises storage system and AWS Storage services. Open the agent in the VM, give a name for your AWS DataSync VM agent, and click on import.

data4

After clicking on import, you will see the following screen:

data4b

Step 5: Right click on your agent shown in the left panel and then click on settings.

data5

Step 6: After opening settings, click on Network Adapter, check the NAT option to enable NAT to let your agent connect over the internet, and click ok.

data6

Step 7: Now power on the virtual machine.

data7

Now, you have to log in to the AWS DataSync agent. The default user for the AWS agent is “admin,” and the default password is “password”. Login using this username and password.

data7b

You’ll see the following screen and copy the given IP from there.

data7c

Step 8: Paste the IP copied in the previous in the agent address section and click on the get key.

data8

Then, you will see the screen shown in the below image. There, you enter the agent name and click on Create Agent.

data8b

We have configured an agent for the transfer of data. It is time to set up source and destination locations for data migration.

Steps to Set up source and destination locations

Step 1: On the AWS DataSync console, click on locations in the left menu and click on Create location.

source

Step 2: Choose Server Message Block (SMB) as the location type. Next, select the agent you have created in previous steps. In the SMB Server, give the IP of your Windows system (you can get that by running “ipconfig” in the command prompt). In the mount path, give the name of the folder you want to migrate and share on your network in earlier steps.

source2

In the User and Password section, give the name of the user of your Windows system to which we permitted the folder when sharing it on the network and its password. And create location.

source2b

Step 3: For destination, choose location type as Amazon S3, then choose the bucket you want to migrate your data, choose storage class as per your need, give folder name if any, and then create a location.

source3

Steps to Create migration task

We have configured agents and locations, and now it is time to create our migration task.

Step 1: Click on Task from the left menu, then click on Create Task.

mig1

Step 2: Select Choose existing location, then in existing location, choose your source location and click next.

mig2

Step 3: For the destination location, click on Choose an existing location, choose your destination location which you configured in an earlier step, then click on Next.

mig3

Step 4: Give the task name and click next, then click on Create task. Then, you will see your task has been created successfully. It will look like the below image. Click Start and select Start with the default option to start the migration task.

mig4

We are done with all the steps, and our data will start migrating.

When you click on see the execution, you will see the below page where you see the execution status as launching.

mig4b

After some time, it will show the migration progress in execution status.

mig4c

After some time, it will show that the transfer is successful, and we can verify the data in the Amazon S3 bucket.

mig4d

It is showing the execution status as Success. Now, we can go to Amazon S3 and verify our data.

mig4e

We can see the data in the Amazon S3 bucket. This data was present in the folder that I shared over my network.

Conclusion

Within contemporary data management, the migration from on-site servers to cloud storage represents a significant development.

With its powerful features, AWS DataSync is a trustworthy ally, making navigating this path easier. AWS DataSync elevates the migration process beyond a simple file transfer and incorporates scalability, efficiency, and security.

As we end this tutorial, it is clear how effective AWS DataSync is at moving data from Windows servers on-premises to Amazon S3.

Drop a query if you have any questions regarding Data Management and we will get back to you quickly.

Making IT Networks Enterprise-ready – Cloud Management Services

  • Accelerated cloud migration
  • End-to-end view of the cloud environment
Get Started

About CloudThat

CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.

CloudThat is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, AWS Training Partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, Microsoft Gold Partner, AWS Microsoft Workload Partners, Amazon EC2 Service Delivery Partner, and many more.

To get started, go through our Consultancy page and Managed Services PackageCloudThat’s offerings.

FAQs

1. Can AWS DataSync handle large-scale data migrations efficiently?

ANS: – Large data quantities can be handled effectively via AWS DataSync. Its highly efficient protocol guarantees fast transfer, reducing the time needed for migration.

2. What level of security does AWS DataSync offer during data transfer?

ANS: – AWS DataSync guarantees strong security throughout data transfer. When storing data in AWS storage services like S3, it offers encryption at rest and encrypts data in transit using TLS (Transport Layer Security).

WRITTEN BY Shakti Singh Chouhan

Shakti Singh is a Research Associate (Infra, Migration, and Security) at CloudThat. He is a passionate learner committed to learning new things every day. Shakti enjoys sharing his knowledge with others. He likes singing and listening to music in his leisure time. 

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!