2017-03-08 02:47:23 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Storage Backends - Configuration"
|
|
|
|
sidebar_current: "docs-configuration-storage"
|
|
|
|
description: |-
|
2017-11-14 11:13:11 +00:00
|
|
|
The storage stanza configures the storage backend, which represents the
|
|
|
|
location for the durable storage of Vault's information. Each backend has
|
|
|
|
pros, cons, advantages, and trade-offs. For example, some backends support
|
|
|
|
high availability while others provide a more robust backup and restoration
|
|
|
|
process.
|
2017-03-08 02:47:23 +00:00
|
|
|
---
|
|
|
|
|
2017-11-14 11:13:11 +00:00
|
|
|
# `storage` Stanza
|
2017-03-08 02:47:23 +00:00
|
|
|
|
2017-11-14 11:13:11 +00:00
|
|
|
The `storage` stanza configures the storage backend, which represents the
|
|
|
|
location for the durable storage of Vault's information. Each backend has pros,
|
|
|
|
cons, advantages, and trade-offs. For example, some backends support high
|
|
|
|
availability while others provide a more robust backup and restoration process.
|
|
|
|
For information about a specific backend, choose one from the navigation on the
|
|
|
|
left.
|
2017-03-08 02:47:23 +00:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
Storage backend configuration is done through the Vault configuration file using
|
2017-03-08 14:17:00 +00:00
|
|
|
the `storage` stanza:
|
2017-03-08 02:47:23 +00:00
|
|
|
|
|
|
|
```hcl
|
2017-03-08 14:17:00 +00:00
|
|
|
storage [NAME] {
|
2017-03-08 02:47:23 +00:00
|
|
|
[PARAMETERS...]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```hcl
|
2017-03-08 14:17:00 +00:00
|
|
|
storage "file" {
|
2017-03-08 02:47:23 +00:00
|
|
|
path = "/mnt/vault/data"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
For configuration options which also read an environment variable, the
|
|
|
|
environment variable will take precedence over values in the configuration
|
|
|
|
file.
|