Create restorable n8n Docker backups in Google Drive via SSH
Ready for 3.0What this workflow does
This workflow has 44 nodes and runs on a schedule (cron 0 10,22 * * *) (plus 1 other trigger). Along the way it connects Google Drive.
How it runs
Trigger: On a schedule (cron 0 10,22 * * *) (plus 1 other trigger).
- Set Backup Configuration (Edit Fields (Set)): sets 2 fields: dockerContainer, date
- Set Restore Configuration (Edit Fields (Set)): sets 1 field: dockerContainer
- Create Backup Folder (Google Drive): work with folder
- Split Uploaded Backup Files (Code): runs custom JavaScript code
- Create Credentials Folder (Google Drive): work with folder
- Create Workflows Folder (Google Drive): work with folder
- Parse Uploaded JSON Files (Extract from File): extracts data from a file (from json)
- Export Credentials via SSH (SSH): uses SSH
- Export Workflows via SSH (SSH): uses SSH
- Detect Backup Record Types (Code): runs custom JavaScript code
…plus 32 more steps. See the full node list below.
Services it uses
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)
- Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - SSH
n8n-nodes-base.ssh - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Convert to File
n8n-nodes-base.convertToFile - Merge
n8n-nodes-base.merge - Extract from File
n8n-nodes-base.extractFromFile - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - n8n Form Trigger
n8n-nodes-base.formTrigger - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow backs up n8n workflows and encrypted credentials from a self-hosted Docker instance via SSH, stores the exports as JSON files in structured Google Drive folders, and provides a Basic Auth–protected form to restore uploaded backups…