# STORAGE GATEWAY

1. AWS Storage Gateway is a service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between your on-premises IT environment and the AWS storage infrastructure.
2. &#x20;The service enables you to securely store data in the AWS Cloud for scalable and cost-effective storage.

> &#x20;(Basically, it is an application that we install on vSphere or HyperV and associate with our aws account, this tool will asynchronously copy your data to s3)

#### &#x20;4 types of Storage Gateway

1. File gateway
2. &#x20;2\. Volume gateway
3. &#x20;3\. Tape gateway

#### &#x20;File gateway

* Files are stored as object in s3 bucket and allows you to store and retrieve objects through nfs.&#x20;
* &#x20;Once the object is transferred to s3 they can be managed as native s3 object so we can apply bucket polices such as versioning, lifecycle management, cross region replication can be applied directly.

> &#x20;(it is mainly used to copy your files to s3, the files can be videos, images, documents etc.) (uses nfs v3 or 4.1)

#### &#x20;Volume gateway

a . It is a block based storage which uses iscsi block protocol mainly used to store os, applications, db etc.&#x20;

b. It acts as a virtual hard disk in cloud. (Basically, we are taking the hard disk on premise and we back them up as a virtual hdd in cloud

&#x20;c. Volume gateway are 2 different type

1. &#x20;Stored volume: we can configure to store the primary data locally and then asynchronously back up point-in-time snapshots of this data to Amazon S3.&#x20;
2. &#x20;Cached volume: we store our data in S3 and retain a copy of frequently accessed data locally. Cached volumes offer a substantial cost savings on primary storage and minimize the need to scale your storage on-premises

#### &#x20;Tape gateway

1. &#x20;Also called as virtual tape library (VTL).&#x20;
2. &#x20;It offers a cost-effective and durable archive backup data in Amazon Glacier. c. It provides a virtual tape infrastructure that scales seamlessly with your business needs and eliminates the operational burden of provisioning, scaling, and maintaining a physical tape infrastructure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gyansetu-aws.gitbook.io/aws-cloud/storage-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
