Templates / Back up Linux servers to a remote server using Borg and SSH

Back up Linux servers to a remote server using Borg and SSH

Ready for 3.0

by Wetomate DevOps ✓ · 21 views · created 2026-08-28 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 15 nodes and runs when someone submits an n8n form (“Borg Backup to Remote Server”) (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: When someone submits an n8n form (“Borg Backup to Remote Server”) (plus 1 other trigger).

  1. Build Backup Config Code (Code): runs custom JavaScript code
  2. Load Backup Configuration (Data table): get
  3. Store Borg Passphrase on Source Server (SSH): uses SSH
  4. Install Borg on Source Server (SSH): uses SSH
  5. Initialize Configuration Table (Data table): create (table)
  6. Install Borg on Destination Server (SSH): uses SSH
  7. Save Backup Configuration (Data table): create or update
  8. Source: Check & Get SSH Key (SSH): uses SSH
  9. Parse SSH Setup Result (Code): runs custom JavaScript code
  10. Destination: Create Restricted borg_backup User (SSH): uses SSH

…plus 3 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 (6)

From the author

Quick overview This workflow collects Borg Backup settings via an n8n form, stores them in an n8n Data Table, and then runs scheduled SSH commands to install Borg, set up restricted SSH access, and back up a chosen directory from a source Linux server to a…

Excerpt from Wetomate DevOps'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.