Back up and restore n8n Docker workflows and credentials with GitHub and SSH
Quick Overview This workflow backs up all n8n workflows and encrypted credentials from a self-hosted Docker instance to a GitHub repository on a schedule, and provides a Basic Auth–protected form to restore workflows and credentials by importing uploaded JSON backup files over SSH. How it works 1. Runs twice daily on a cron schedule to start a backup run. 2. Creates timestamped workflows and credentials folders (via placeholder files) in the target GitHub repository. 3. Connects to the Linux hos
At a glance
Back up and restore n8n Docker workflows and credentials with GitHub and SSH is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects GitHub. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- GitHub
- Modules
- 43
- Price
- Free
- Version
- v1.0

About this workflow
Quick Overview This workflow backs up all n8n workflows and encrypted credentials from a self-hosted Docker instance to a GitHub repository on a schedule, and provides a Basic Auth–protected form to restore workflows and credentials by importing uploaded JSON backup files over SSH. How it works 1. Runs twice daily on a cron schedule to start a backup run. 2. Creates timestamped workflows and credentials folders (via placeholder files) in the target GitHub repository. 3. Connects to the Linux host over SSH and runs the n8n CLI in the Docker container to export all workflows and all encrypted credentials. 4. Commits workflows-all.json and individual
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Post new GitHub push actions to Mattermost
Fetch real-time stock quotes to Google Sheets with OpenAI, Octagon and GitHub
Create Tadabase records for new Github issues
Create Bitbucket snippet comments from new GitHub comments
Create GitHub issues when cards are moved to a list in Trello
Auto-categorize blog posts with OpenAI GPT-4, GitHub, and Google Sheets for Astro/Next.js
WhatsApp dietitian AI chatbot workflow
Auto-sync local events to Google Calendar with n8n
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you