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

> 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.

Source: https://millionrounds.com/workflow/n8n-v-0-221-2-github-backup-of-workflows-and-credentials (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Setup and learning](https://millionrounds.com/workflows?category=Setup+and+learning#library)

# [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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fn8n-v-0-221-2-github-backup-of-workflows-and-credentials)

**26 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Logic 9 Service 15

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

- 1 **When clicking "Execute Workflow"** Manual trigger *Starts it*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **Display name Folder** Execute Command *Service*
- 4 **Config** Set *Logic*
- 5 **Export Workflows** Execute Command *Service*
- 6 **Get files workflows** Execute Command *Service*
- 7 **Split workflows** Code *Logic*
- 8 **Loop workflows** Split In Batches *Logic*
- 9 **Ler arquivo do workflows** Read Binary Files *Service*
- 10 **Export Credentials** Execute Command *Service*
- 11 **Obter JSON em TXT dos arquivos de workflows** Move Binary Data *Service*
- 12 **Get files credentials** Execute Command *Service*
- 13 **Obter arquivo do workflow** Github *Service*
- 14 **Split credentials** Code *Logic*
- 15 **O arquivo de workflow existe no GitHub?** If *Logic*
- 16 **Loop credentials** Split In Batches *Logic*
- 17 **Editar aquivo de workflow** Github *Service*
- 18 **Criar aquivo de workflow** Github *Service*
- 19 **Ler arquivo do credentials** Read Binary Files *Service*
- 20 **Agrupar workflows** No Op *Logic*
- 21 **Obter JSON em TXT dos arquivos de credentials** Move Binary Data *Service*
- 22 **Obter arquivo do credential** Github *Service*
- 23 **O arquivo de workflow existe no GitHub?1** If *Logic*
- 24 **Editar aquivo de credentials** Github *Service*
- 25 **Criar aquivo de credentials** Github *Service*
- 26 **Agrupar credentials** No Op *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fn8n-v-0-221-2-github-backup-of-workflows-and-credentials)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[GitHub](https://millionrounds.com/workflows?service=GitHub#library)

## Workflows like it

Also setup and learning, with the same services where possible, closest in size first.

- [**INST - the n8n installer: deploy workflows with GitHub** 22 steps · GitHub](https://millionrounds.com/workflow/inst-the-n8n-installer-deploy-workflows-with-github)
- [**[n8n v^1.37.3] GitHub backup of workflows and credentials** 20 steps · GitHub](https://millionrounds.com/workflow/n8n-v-1-37-3-github-backup-of-workflows-and-credentials)
- [**Build your own GitHub MCP server** 15 steps · GitHub](https://millionrounds.com/workflow/build-your-own-github-mcp-server)
- [**Back up and restore n8n workflows and credentials with GitHub** 41 steps · FTP, GitHub](https://millionrounds.com/workflow/back-up-and-restore-n8n-workflows-and-credentials-with-githu)
- [**GitHub webhook-based n8n workflow import template** 9 steps · GitHub](https://millionrounds.com/workflow/github-webhook-based-n8n-workflow-import-template)
