Migrate Vault with file storage between servers


I have a Vault deployment. 1 container in docker compose and the file storage is mounted from local.

I need to move the vault service to the new server. Same setup just on a new server.

If I deploy the same vault version container and rsync the storage to the new server to the same path will It work without any problem?

For restoring Vault with data from scratch (what is the same) i just restore content of the directory:

storage "file" {
  path = "/opt/vault/data"
1 Like