Templates / Back up and restore n8n Docker workflows and credentials with GitHub and SSH

Back up and restore n8n Docker workflows and credentials with GitHub and SSH

Ready for 3.0

by Hồ Đình Huy ✓ · 125 views · created 2026-06-09 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 43 nodes and runs on a schedule (cron 0 10,22 * * *) (plus 1 other trigger). Along the way it connects GitHub.

How it runs

Trigger: On a schedule (cron 0 10,22 * * *) (plus 1 other trigger).

  1. Backup Configuration (Edit Fields (Set)): sets 4 fields: githubOwner, githubRepository, dockerContainer…
  2. Restore Configuration (Edit Fields (Set)): sets 1 field: dockerContainer
  3. Init Workflow Folder (GitHub): work with file
  4. Extract Binary Data (Code): runs custom JavaScript code
  5. Init Creds Folder (GitHub): work with file
  6. Export Workflows (SSH): uses SSH
  7. Extract JSON from Binary (Extract from File): extracts data from a file (from json)
  8. Export Credentials (SSH): uses SSH
  9. Parse Workflow Export (Code): runs custom JavaScript code
  10. Route Import Data (Code): runs custom JavaScript code

…plus 31 more steps. See the full node list below.

Services it uses

GitHub

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

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…

Excerpt from Hồ Đình Huy's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.