# Amazon S3 Glacier

## About Amazon S3 Glacier

Amazon S3 Glacier and S3 Glacier Deep Archive are secure, durable, and extremely low-cost Amazon S3 cloud storage classes for data archiving and long-term backup. They are designed to deliver 99.999999999% durability, and provide comprehensive security and compliance capabilities that can help meet even the most stringent regulatory requirements.

## Required permissions

The following permissions are required to use Amazon S3 Glacier as a storage for your backups:

* glacier:UploadArchive
* glacier:DeleteArchive
* glacier:InitiateJob
* glacier:GetJobOutput
* glacier:InitiateMultipartUpload
* glacier:CompleteMultipartUpload
* glacier:AbortMultipartUpload
* glacier:UploadMultipartPart
* glacier:DescribeJob

## Set up Amazon S3 Glacier as a customer managed storage

To set up Amazon S3 Glacier as a storage for your backups, follow the steps below.

### Create a new Amazon S3 Glacier storage

* Open the [Cloudback Dashboard](https://app.cloudback.it/)
* Navigate to the `Storages` page by clicking on the `Storages` link in the left-side navigation pane
* Click on the `Add a new storage` button:

![Add new storage](https://2781059148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQEI7SjBF2CddqNXZpCoE%2Fuploads%2Fgit-blob-48c773c5876576956efc547df9c59cfec230772b%2Fcustomer-managed-storages.png?alt=media)

* Type a storage name in the `Storage name` field. Use a name that will help you identify this storage in the future.
* Select `Amazon S3 Glacier` from a Storage Provider dropdown:

![Amazon S3 Glacier storage settings](https://2781059148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQEI7SjBF2CddqNXZpCoE%2Fuploads%2Fgit-blob-c97b38ade73b54f578a4833747c3bebe591b09fb%2Fcreate-new-storage-aws-glacier.png?alt=media)

### Set up storage settings

Choose the settings for the storage:

* **Deduplication type** - enable or disable data deduplication. For more details, please refer to the [Deduplication](https://docs.cloudback.it/managing-backups/data-deduplication) documentation
* **Archive type** - enable or disable archive password protection. For more details, please refer to the [Password-Protected Archives](https://docs.cloudback.it/security-and-compliance/password-protected-archives) documentation
* **Archive name pattern** - configure the archive name pattern, which is used to generate the name of the backup archive. For more details, please refer to the [Archive Name Pattern](https://docs.cloudback.it/managing-backups/archive-name-pattern) documentation

### Create a new Amazon S3 Glacier Vault

To upload backups to Amazon S3 Glacier, you need to have a vault. You can find more information on how to create a vault in the [Amazon S3 Glacier documentation](https://docs.aws.amazon.com/amazonglacier/latest/dev/getting-started-create-vault.html). After creating a vault, you need to provide the Vault ARN in the `Step 1` field. If you already have a vault, you can just provide the ARN of the existing vault.

### Apply vault access policy

After you type a vault ARN in the `Step 1` field, Cloudback will generate a vault access policy for you. The generated policy document is available in the `Step 2` field. You need to apply this policy to the vault to allow Cloudback to access it. For more information on how to apply the vault access policy, please refer to the corresponding [Amazon S3 Glacier documentation page](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html).

### Save storage

Click on `Save` button to save the new storage. You can also use a `Test` button to check if the storage is configured correctly. After saving the storage, you can use it for storing backups of your repositories.

All storage settings can be changed later in the `Storages` page. To edit the storage settings, click on the `Edit` button next to the storage you want to edit.

## Change the storage for a repository

You can change the storage for a particular repository in the [Repository Details](https://docs.cloudback.it/dashboard/repository-details) page. Also, you can assign it to multiple repositories through the [Bulk Operations](https://docs.cloudback.it/managing-backups/bulk-operations).

## Learn More

* [Customer Managed Storages](https://docs.cloudback.it/storage-configuration/customer-managed-storages)
* [Dashboard Overview](https://docs.cloudback.it/dashboard/dashboard-overview)
* [Repository Details](https://docs.cloudback.it/dashboard/repository-details)
* [Bulk Operations](https://docs.cloudback.it/managing-backups/bulk-operations)
* [Replicating Backups](https://docs.cloudback.it/storage-configuration/replicating-backups)
