Backup your credentials to GitHub
n8n template #2307Summary
Use templateBased on Jonathan's work. Check out his templates. This workflow will backup your credentials to GitHub. It uses a CLI command to export all credentials. It then loops over the data, checks in GitHub to see if a file exists that uses the credential's ID. Once checked it will: update the file on GitHub if it exists; create a new file if it doesn't exist; ignore if it's the same. Config Options repo.owner - Github owner repo.name - Github repository name repo.path - Path within the Github repository β The credentials are all decrypted. Make sure you save them safely or tweak the CLI command to store them encrypted.== Check out my other templates π https://n8n.io/creators/solomon/
How to set it up
- Open template #2307 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 your credentials to GitHub" (https://n8n.io/workflows/2307). It uses: GitHub, HTTP Request, 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. Solomon published it free on n8n.io as a verified creator, and it has 10K views. It runs on n8n Cloud or a self-hosted n8n instance.
GitHub. The other 2 nodes 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 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
- Build Your First AI Data Analyst Chatbot134K