Templates / Automatic workflow & credentials backup to GitHub with change detection

Automatic workflow & credentials backup to GitHub with change detection

Ready for 3.0

by Hamed Nickmehr · 6,576 views · created 2025-06-02 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 21 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects GitHub.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Read File (Read/Write Files from Disk): reads a file from disk
  2. Set Workflow Path (Edit Fields (Set)): sets 1 field: filePath
  3. Set Credential Path (Edit Fields (Set)): sets 1 field: filePath
  4. Extract Data (Extract from File): extracts data from a file (text)
  5. Get Old Workflow Hash (Execute Sub-workflow): calls another n8n workflow
  6. Get Old Credential Hash (Execute Sub-workflow): calls another n8n workflow
  7. Hash Data (Crypto): hashes or encrypts values
  8. Execute Workflow Backup (Execute Command): runs a shell command on the n8n host
  9. Execute Credential Backup (Execute Command): runs a shell command on the n8n host
  10. Get New Workflow Hash (Execute Sub-workflow): calls another n8n workflow

…plus 9 more steps. See the full node list below.

Services it uses

GitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n. Title: n8n Credentials and Workflows Backup on Change Detection Purpose: Never lose track of your n8n changes again! This workflow smartly backs up all…

Excerpt from Hamed Nickmehr's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.