Templates / Back up Linux server directories to Google Drive with Borg over SSH

Back up Linux server directories to Google Drive with Borg over SSH

Ready for 3.0

by Wetomate DevOps ✓ · 2 views · created 2026-08-31 · 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 20 nodes and runs when someone submits an n8n form (“Borg Backup Settings”) (plus 1 other trigger). Along the way it connects Google Drive.

How it runs

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

  1. Init Backup Config Table (Data table): create (table)
  2. Get Config (Data table): get
  3. Build Initial Config (Code): runs custom JavaScript code
  4. Install Borg on Server (SSH): uses SSH
  5. Store Borg Passphrase on Server (SSH): uses SSH
  6. Build Runtime Config (Code): runs custom JavaScript code
  7. Save Config (Data table): create or update
  8. Create Server Backup (SSH): uses SSH
  9. Export Backup Archive (SSH): uses SSH
  10. Download Backup Archive (SSH): download (file)

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

Services it uses

Google Drive

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick overview This workflow collects backup settings via an n8n form, creates a Borg backup of a server directory over SSH, packages the Borg repository into a tar.gz archive, and uploads it to a chosen Google Drive folder in either sync (single latest file)…

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.