Backup workflows to git repository on Github
n8n template #2532Summary
Use templateSource code, I maintain this worflow here. Usage Guide This workflow backs up all workflows as JSON files named in the [workflowname].json format. Steps Create GitHub Repository Skip this step if using an existing repository. Add GitHub Credentials In Credentials, add the GitHub credential for the repository owner. Download and Import Workflow Import this workflow into n8n. Set Global Values In the Globals node, set the following: repo.owner: GitHub username of the repository owner. repo.name: Name of the repository for backups. repo.path: Path to the folder within the repository where workflows will be saved. Configure GitHub Nodes Edit each GitHub node in the workflow to use the added cred
How to set it up
- Open template #2532 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create a credential under Credentials → Add credential: GitHub. Then open each of those nodes and pick the credential.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Backup workflows to git repository on Github" (https://n8n.io/workflows/2532). It uses: GitHub, Code. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. Shashikanth published it free on n8n.io, and it has 5,778 views. It runs on n8n Cloud or a self-hosted n8n instance.
GitHub. The other 1 node are built into n8n.
Similar workflows
NameViews
- Back Up Your n8n Workflows To Github80K
- AI Timesheet Generator with Gmail, Calendar & GitHub to Google Sheets20K
- Backup your credentials to GitHub10K
- Backup your workflows to GitHub8,978
- Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
- ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
- Fully Automated AI Video Generation & Multi-Platform Publishing191K
- Scrape business emails from Google Maps without the use of any third party APIs150K