# WordPress context backup to GitHub: n8n workflow template

> Started by a clock, and works across GitHub and WordPress. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/wordpress-context-backup-to-github (Millionrounds; every figure on the page links to its filing or article)

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

# WordPress context backup to GitHub

Started by a clock, and works across GitHub and WordPress. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fwordpress-context-backup-to-github)

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

**3** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 13 Service 5

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

- 1 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 2 **Manual Trigger** Manual trigger *Starts it*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **Merge Items** Merge *Logic*
- 5 **tag?** Switch *Logic*
- 6 **Get All WP Posts** Wordpress *Service*
- 7 **isDiffOrNew** Code *Logic*
- 8 **/** Set *Logic*
- 9 **Globals** Set *Logic*
- 10 **Format JSON** Code *Logic*
- 11 **Check Status** Switch *Logic*
- 12 **Get file data** Github *Service*
- 13 **Execute Workflow** Execute Workflow *Logic*
- 14 **Same file - Do nothing** No Op *Logic*
- 15 **File is different** No Op *Logic*
- 16 **File is new** No Op *Logic*
- 17 **If file too large** If *Logic*
- 18 **Return** Set *Logic*
- 19 **Edit existing file** Github *Service*
- 20 **Create new file** Github *Service*
- 21 **Get File** Http Request *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 21, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** GitHub, WordPress
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own GitHub and WordPress accounts. 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 21 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 21 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%2Fwordpress-context-backup-to-github)
- **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)[WordPress](https://millionrounds.com/workflows?service=WordPress#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Automatic workflow & credentials backup to GitHub** 21 steps · GitHub](https://millionrounds.com/workflow/automatic-workflow-and-credentials-backup-to-github)
- [**Backup your workflows to GitHub -- in (subfolders)** 21 steps · GitHub](https://millionrounds.com/workflow/backup-your-workflows-to-github-in-subfolders)
- [**Backup your credentials to GitHub** 20 steps · GitHub](https://millionrounds.com/workflow/backup-your-credentials-to-github)
- [**Backup your workflows to GitHub** 19 steps · GitHub](https://millionrounds.com/workflow/backup-your-workflows-to-github)
- [**Restore n8n workflows from GitHub JSON backups** 17 steps · GitHub, n8n data table](https://millionrounds.com/workflow/restore-n8n-workflows-from-github-json-backups)
- [**Aggregate & update documentation from Slack, Teams & GitHub** 17 steps · calls a model · GitHub, Gmail](https://millionrounds.com/workflow/aggregate-and-update-documentation-from-slack-teams-and-gith)
