n8n: Back Up Workflows to Git — Export, Versions, Restore

Price in currencies:
11.83 $ · 838 RUB · 10.82 €
Category:
Others
Item:
n8n-git-backup-v1.0.zip (70.16 KB)
Uploaded:
23.11.2026 11:39:37
Sales:
0
Refunds:
0
Seller:
Новинка Супер хит! · about the seller and their products
11.83 $

You will choose the payment method — bank card, cryptocurrency, WebMoney, Alipay, PIX, UPI and others — on the next step. See «Payment methods» for details.

DESCRIPTION

n8n: Back Up Workflows to Git — Export, Versions, Restore

All your n8n workflows in a private Git repository, with change history and one-command rollback to any version. Every day (or on your schedule) the kit exports workflows through the n8n public API and commits the changes, so you can see exactly what changed in an automation and when. Broke a workflow by accident — roll back to yesterday´s version instead of rebuilding nodes by hand.

Secrets never reach Git: token, password and API-key values are replaced with ***MASKED*** before committing, and full credential data is not exported at all — only credential names and types, so after a restore you know what to reconnect.

Difference from «Auto-backup of server configs to Git» (product #40): that kit backs up config files from the server disk (nginx, systemd, crontab). This kit backs up not files but the contents of n8n: workflows, their connections and versions. Difference from «Your own Git on a VPS: Gitea in Docker»: Gitea is the Git server itself, while this kit is what goes into the repository.

WHAT´S INSIDE THE ARCHIVE
• export.py — export workflows and credentials from n8n via API v1 (Python, no dependencies)
• backup.sh — backup: export + commit + push (check, dry-run, backup, status)
• import-workflows.sh — restore: version list, dry-run, rollback to any commit, single-workflow rollback
• .env.example — settings: n8n URL, API key, repository (placeholders only)
• cron.example — automatic backup every night at 03:00
• fixtures/ — test data and a fake n8n API for verification
• test_n8n_git_backup.sh — automated tests in a sandbox (39 checks)
• README.md and PDF — full guide: setup, backup, restore, security

GUIDE STEPS
1. n8n API key: Settings → n8n API → Create API key.
2. cp .env.example .env — fill in N8N_URL, N8N_API_KEY, REPO_URL.
3. ./backup.sh check — verify the n8n connection, changes nothing.
4. ./backup.sh dry-run — see what the first backup will contain.
5. ./backup.sh backup — export + commit + push.
6. Automatic backup: cron at 03:00 (see cron.example).
7. Rollback: ./import-workflows.sh dry-run --commit , then restore.

WHAT YOU NEED
n8n with the public API enabled and an API key (Docker, VPS or n8n Cloud); Linux/macOS with bash, git and Python 3.8+ on the machine running the scripts; a private Git repository (GitHub, GitLab or your own Gitea). 20–30 minutes for the first setup.

HONEST LIMITS
Workflows and credential metadata (id, name, type) are backed up; secrets are masked and never reach Git in plain text, and full credential data is not exported at all. Restoring credentials is a manual step in the n8n interface: the public API cannot create them, so after importing a workflow you reconnect credentials by name from the backup. A workflow deleted in n8n and restored again gets a new id — check its connections. Execution history is not backed up: old execution logs will not reappear after a rollback. The repository must be private: it holds the structure of your automations.

IMPORTANT
These are files and a guide for self-setup — not a done-for-you installation. If you need automatic n8n backup installed on your server turnkey, that´s a separate service.

SIMILAR PRODUCTS
• n8n: payment and renewal reminder bot for clients: https://plati.market/itm/n8n-payment-and-renewal-reminder-bot-for-clients-workflow-guide/6432377
• n8n: AI product descriptions from Google Sheets: https://plati.market/itm/n8n-ai-product-descriptions-from-google-sheets-workflow-guide/6423702
• Auto-backup of server configs to Git: snapshots, secret masking, restore: https://plati.market/itm/auto-backup-server-configs-to-git-snapshots-secret-masking-restore/6435006
• MySQL and PostgreSQL backups on schedule: https://plati.market/itm/mysql-postgresql-backups-on-schedule-dump-script-guide/6423682
• Your own Git on a VPS: Gitea in Docker: https://plati.market/itm/your-own-git-on-a-vps-gitea-in-docker-backups-compose-stack-guide/6422908
• Server backups with restic: https://plati.market/itm/server-backups-with-restic-scheduled-cloud-storage-telegram-alerts/6410486

REVIEWS

Reviews: (0)

No customer reviews yet.

More in «Others»

All items in «Others» →