Templates / N8N backup flow to Nextcloud (7-day retention)

N8N backup flow to Nextcloud (7-day retention)

Ready for 3.0

by Joachim Hummel ✓ · 1,512 views · created 2025-05-23 · 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 12 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Nextcloud.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Backup Path (Edit Fields (Set)): sets 1 field: backup
  2. Nextcloud: work with folder
  3. n8n: uses n8n
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Nextcloud: list (folder)
  6. Code: runs custom JavaScript code
  7. Backups (Sort): sorts the items
  8. Nextcloud: uses Nextcloud
  9. Limits Backups (Code): runs custom JavaScript code
  10. Nextcloud: delete (folder)

Services it uses

Nextcloud

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 (8)

From the author

This workflow automates the daily backup of all your n8n workflows to a designated folder in Nextcloud. It ensures that you always have the last 7 days of backups available while automatically deleting older ones to save space. 🔧 Features Scheduled Trigger:…

Excerpt from Joachim Hummel'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.