Migration from docker instance into kubernetes hosted instance

Hello, i am migrating my n8n docker instance to a new n8n kubernetes deployment.
i created an admin user and then i started the migration.

First i tried the Migration Strategy mentioned in this thread Link to The THREAD

I followed the following official documentation to migrate the workflows and credentials : Link to the DOC

i used the following commands:

n8n export:workflow --id=<ID> --output=file.json

and

n8n export:credentials --all --decrypted --output=decrypted.json

and for the restore
i used the following commands

n8n import:workflow --input=file.json

and

n8n import:credentials --input=decrypted.json

in my new instance, i can see the workflows but i don’t see the users

any idea why the users didn’t appear ?

@MutedJam any idea please regarding that ?

Welcome to the community.

Please do not tag people randomly.

There is plenty of people answering questions, so just be a bit patient. :grin:

1 Like

I mentioned the person that gave the solution in the previous thread
I am sorry

Hi @Houssem_EDDINE_KHAMM, yeah I think I wrote most of my forum posts around migrations before users were introduced to n8n. Unfortunately there is not currently a supported way to export/import users through the CLI.

In such scenarios it could make more sense to dump the full database from the source and then import this full dump on the target system (and make sure to use the existing encryption key), provided the target system doesn’t have any data on its own yet.

1 Like

Hi @MutedJam, it’s been a while since i have posted this :grin:
in fact the migration went perfect after a little of bit of hustle.

in summary i had to dump and then import the entire db, import the credentials and workflows and that’s all.

i did some customizations to the helm chart : Helm Chart in order to make things work in the most convenient way.

i am not totally sure but i believe that after version 1.9 the way data is stored in the db has a changed a little bit

i will try to post a hole article here about my experience throughout the migration process

2 Likes

Awesome, glad to hear this worked out in the end! And yes, n8n definitely does change a lot :see_no_evil_monkey:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.