Correct migration process from local storage to raft - Back up Vault

Hello, I was wondering what the correct migration process is from local storage to raft and if there is any way to do a backup and restore from one to the other.

I have a Vault 1.3 and I want to back it up to restore them in Vault raft 1.5. Is there any way to do that?

The way I found it was using storage_source “file” and storage_destination “raft”, but it didn’t work out very well.

`
storage_source “file” {
path = “/ vault / raft /”
}

storage_destination “raft” {
path = “/ vault / raft /”
node_id = “node_1”
}`

Hello, based on this: https://learn.hashicorp.com/tutorials/vault/raft-migration

I suppose the issue is you are setting the same source and destination so your migration.hcl should look instead of this:

storage_source “file” {
path = “/vault/raft/”
}

storage_destination “raft” {
path = “/vault/raft/”
node_id = “node_1”
}

Like this one:

storage_source “file” {
path = “/vault/**sourcepath**/”
}

storage_destination “raft” {
path = “/vault/raft/”
node_id = “node_1”
}

Keep us posted about the results.

1 - I created a new vault separate from the others
2 - I turned off the Vaults
3 - I ran the “vault operator migrate -config = migrate.hcl”
4 - Migrate copied the files, but the vaults have no view of the files.

I was wondering if I need to use the same key as the old vault or do I have to generate a new key for the cluster vault to recognize the files?