Automated Git Backup for n8n Workflows & Credentials

This workflow automates backing up n8n workflows and credentials to a Git repository, using export commands and committing only on changes for efficient version control.

n8n
Automated Git Backup for n8n Workflows & Credentials

This n8n workflow provides a robust solution for automatically backing up your n8n workflows and credentials to a Git repository. It leverages n8n's built-in export commands (n8n export:workflow --backup and n8n export:credentials --backup) to generate JSON files, then uses Git operations like git diff to detect changes, adding, committing, and pushing only when modifications are present. This ensures a clean commit history without unnecessary noise.

Setup requires server access: clone a Git repo accessible to n8n (e.g., GitHub, GitLab), configure Git user details, and adjust paths in the workflow. Test manually with export and push commands to verify. Benefits include version control for disaster recovery, collaboration via pull requests, and audit trails for changes, reducing manual effort and risk of data loss in self-hosted n8n environments.

Ideal use cases: IT teams managing production n8n instances, DevOps for CI/CD integration, or agencies handling multiple client workflows. Run on a schedule (e.g., daily) or trigger manually. Enhances reliability for business-critical automations, saving hours on manual exports and restores.

$14.99
Last updated October 10, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Human Resources workflows

More from Halle Kowalczyk

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.