Workflow to backup credentials

I’m trying to backup my credentials to a private GitHub repository.
But I can’t find a way to access the files I need.

I’ve even tried adding this environmental variable:


Information on your n8n setup

  • n8n version: 1.32.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 22.04

Hello @gmsalomao2

If you really want to backup credentials, then you need to use the CLI command to create the exported creds file

Use the Execute Command node to run npx n8n export:credentials --all --decrypted

Parse the output and do what you want with it.

You can also use the n8n node to get all workflows and back those up as well.

1 Like

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