Automation library · Setup and learning

[n8n v^0.221.2] GitHub backup of workflows and credentials

Started by a clock, and works across GitHub. 26 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

26 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 2Logic 9Service 15

The steps in the order they run, from what starts it.

  1. 1When clicking "Execute Workflow"Manual triggerStarts it
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Display name FolderExecute CommandService
  4. 4ConfigSetLogic
  5. 5Export WorkflowsExecute CommandService
  6. 6Get files workflowsExecute CommandService
  7. 7Split workflowsCodeLogic
  8. 8Loop workflowsSplit In BatchesLogic
  9. 9Ler arquivo do workflowsRead Binary FilesService
  10. 10Export CredentialsExecute CommandService
  11. 11Obter JSON em TXT dos arquivos de workflowsMove Binary DataService
  12. 12Get files credentialsExecute CommandService
  13. 13Obter arquivo do workflowGithubService
  14. 14Split credentialsCodeLogic
  15. 15O arquivo de workflow existe no GitHub?IfLogic
  16. 16Loop credentialsSplit In BatchesLogic
  17. 17Editar aquivo de workflowGithubService
  18. 18Criar aquivo de workflowGithubService
  19. 19Ler arquivo do credentialsRead Binary FilesService
  20. 20Agrupar workflowsNo OpLogic
  21. 21Obter JSON em TXT dos arquivos de credentialsMove Binary DataService
  22. 22Obter arquivo do credentialGithubService
  23. 23O arquivo de workflow existe no GitHub?1IfLogic
  24. 24Editar aquivo de credentialsGithubService
  25. 25Criar aquivo de credentialsGithubService
  26. 26Agrupar credentialsNo OpLogic

How it's built

Starts on
A clock
Steps
26, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
GitHub
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own GitHub account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.