N8N backup flow to Nextcloud (7-day retention)
Ready for 3.0Ready 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).
- Backup Path (Edit Fields (Set)): sets 1 field: backup
- Nextcloud: work with folder
- n8n: uses n8n
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Nextcloud: list (folder)
- Code: runs custom JavaScript code
- Backups (Sort): sorts the items
- Nextcloud: uses Nextcloud
- Limits Backups (Code): runs custom JavaScript code
- Nextcloud: delete (folder)
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 (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - n8n
n8n-nodes-base.n8n - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Sort
n8n-nodes-base.sort - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Nextcloud
n8n-nodes-base.nextCloud - Code
n8n-nodes-base.code
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:…