Vault
Save a Vault snapshot
Manually back up data from your Vault cluster with a snapshot.
Tip
If you are taking snapshots as preparation for a Vault Enterprise upgrade, review the Automate upgrades with Vault Enterprise tutorial to learn how you can automate your upgrades with autopilot.
Before you start
- You must a working knowledge of how Vault saves data.
- You must have a valid Vault cluster configuration using integratd storage.
- You must know, and be able to contact your unseal/recovery key holders.
- You must have permission to access encrypted data in backed storage.
- You should have a secure location, away from your Vault cluster infrastructure, to save the snapshot file.
Save a single cluster snapshot
Take a snapshot of a single Vault cluster.
Use
vault operator raft snapshot save
to take a snapshot from a Vault cluster. For example, to save a snapshot to the
local file backup.snap
:
$ vault operator raft snapshot save backup.snap
Save a DR replication cluster snapshot
Take a snapshot of a cluster participating in disater recovery replication.
Use
vault operator raft snapshot save
to take a snapshot from the primary cluster. For example, to save a snapshot to
the local file primary.snap
:
$ vault operator raft snapshot save primary.snap
Save a performance replication (PR) cluster snapshot
Take a manual snapshot of a cluster participating in performance replication.
Use
vault operator raft snapshot save
to take separate snapshots from all cluster members supporting the performance
primary cluster and the performance secondary cluster.
First, take a snapshot on the primary cluster. For example, to save a snapshot
to the local file primary.snap
:
$ vault operator raft snapshot save primary.snap
Next, take a snapshot on the secondary cluster. For example, to save a snapshot
to the local file secondary.snap
:
$ vault operator raft snapshot save secondary.snap