I am trying to migrate vault data entirely from a Postgres backend in an old cluster to a new HA cluster with Raft Storage. The Enterprise version has a great DR option. Unfortunately, I am bound to use the Open Source version.
The docs talk only Consul and Integrated Storage but it’s not clear for Postgres.
What would be the recommended way to perform this migration? Could you please explain the steps I may need to follow?
Be aware that you must shut down the source Vault server(s) whilst running migration. If you do not, your migration output might be based on inconsistent data because the source was changing whilst it was being read for migration, causing potentially undefined results.
The core of Vault does not offer snapshot/restore capabilities - that is up to the storage backend.
Consul is capable of this (using direct access to the Consul backend, using Consul tools or APIs).
So is Vault’s integrated Raft storage.
PostgreSQL is a good SQL database so it’s likely possible to take a consistent online backup from it too, but you might need to be an expert PostgreSQL DBA to reason your way to a safe procedure.