Configuring AWS Storage Gateway For Backup
In some cases, it might be useful to use the AWS Storage Gateway service provided by Amazon. It allows having frequently used data on premises while having the rest in the cloud. With configured storage gateway service, you will be able to see all your data on your mapped drive. You can easily access data using File Explorer and download separate files.
For more information about the Storage Gateway service, refer to the AWS documentation.
This article describes the configuration of Storage Gateway hosted on Microsoft Hyper-V.
Prerequisites
Navigate to AWS Console and find AWS Storage Gateway in the Storage section.

For file-level backup, select File Gateway.
For more information about File Gateway type, please visit: AWS official website

Download the image of the virtual machine to start configuring the gateway according to your host platform.

Unzip the downloaded file.
Configure Host Platform
Create a new virtual machine.

Select Generation 1, assign at least 4 GB of RAM, select a preconfigured virtual network switch that is connected to the internet.
Select Use an existing virtual hard disk and find the downloaded VHD file.

Do not start this virtual machine. Some options need to be configured before starting.
Open the settings for this machine.
Add an additional IDE drive. Allocate at least 50 GB; it can be in dynamic mode.

Start this VM.
To log in to the VM, use the username admin and the password password.
In the next step, you will see your IP address assigned by the DHCP server. You can assign the static IP in the corresponding menu. You can also check your network connectivity to ensure a stable connection. Another useful option is syncing your time.
Configuring the AWS Storage Gateway
If everything is OK, return to the AWS console and continue configuring your gateway.
Put the IP address from the virtual machine to the IP address field.

Specify your gateway time zone. Give your gateway a name.

Configure local disks. Just select the disk you created before.

It’s possible that your machine will be unreachable for AWS after it starts. In this case, please wait several minutes. You will have the opportunity to configure local disks later if it fails to load VM’s disks.

Here you can press Save and continue. In most cases, VM starts working properly after reboot.
If you see that the Storage Gateway status is running, click the Edit local disks button.

In the next step, you can configure your local storage.

- If you would like to create an SMB share, you should configure additional settings before creating that share. Check the Set guest password box and create a guest password. This password will be used as network access credentials.


- Create a file share.
File share connects your bucket with your on-premises environment. This drive will be mapped as an SMB or NFS drive. In other words, you will have your bucket mapped as an SMB or NFS drive.

Type the name of your bucket and specify the preferred S3 storage class.

To activate guest access follow the pictures below:



- When you finish creating the file share, you will see the information regarding this file share.

Below, you will find the command that needs to be run to map this drive in the Windows operating system.
Run Command Line tool. It doesn’t require administrator rights.
Paste this command.
Replace [windowsDriveLetter] with your desired drive's letter.
If you use guest access, type the password specified in step 4.
After that, you can navigate to this drive using File Explorer. If you already have any data in this bucket, you will be able to see all this data. Please note that this is only metadata listing your files. If you try to access a file, it will first be downloaded from the cloud, and after that, it can be opened. Afterwards, the data will be available simultaneously locally and in the cloud. If the VHD disk is full, infrequently used data will be automatically deleted from your local storage allowing downloading/uploading other files.
Configuring CloudBerry
You can set up CloudBerry to make backups to this mapped drive. All data will be uploaded to the cloud asynchronously. You will also be able to download separate files, but only if you do not configure compression and/or encryption in the CloudBerry application.
1A) Configure a backup account for the mapped drive from the Management Console
a) Open the Management Console
b) Navigate to the Storage tab and select Storage Accounts.
c) Click Add Account.
d) Select File System.
e) Specify your VM’s IP address and bucket name. Use login from the command on the AWS file share page (step 8 in Configuring the AWS Storage Gateway) and the password from step 4.

1B) Configure a backup account for the mapped drive from the CloudBerry backup agent
a) Find the Storage Account section in the Welcome tab.
b) Click the plus sign.

c) Type the name and the path. Then click Change Network Credentials.

d) Click OK.
- Create the backup plan as usual using the created storage account.
Contact Us
- Tech questions
- Sales questions: sales@msp360.com