Back up a Linux server directory to Backblaze B2 with rclone
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs when someone submits an n8n form (“Backup to Backblaze B2 (rclone)”) (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Backup to Backblaze B2 (rclone)”) (plus 1 other trigger).
- Prepare Backup Configuration (Code): runs custom JavaScript code
- Load Configuration (Data table): get
- Initialize Backup Configuration Table (Data table): create (table)
- Test Connection (SSH): uses SSH
- Save Backup Configuration (Data table): create or update
- Connection OK? (If): checks a condition and branches into true / false
- Ensure rclone Installed on Source Server (SSH): uses SSH
- Route by Backup Mode (If): checks a condition and branches into true / false
- Stop: Fix Backblaze B2 Credentials (Stop and Error): stops the run with an error
- Encryption Enabled? (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
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 (7)
- SSH
n8n-nodes-base.ssh - Stop and Error
n8n-nodes-base.stopAndError - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - n8n Form Trigger
n8n-nodes-base.formTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow uses SSH and rclone to back up a directory from a source server to a Backblaze B2 bucket on a schedule, optionally encrypting data with an rclone crypt remote, and supports either sync mirroring or versioned copy backups. How it…