Daily n8n Workflow Backup to Nextcloud (7-Day Retention)

Automates daily backups of all n8n workflows to Nextcloud, retaining only the last 7 days while deleting older files to save space. Ensures clean JSON exports for easy 1:1 import back into n8n.

n8n
Daily n8n Workflow Backup to Nextcloud (7-Day Retention)

This workflow runs on a daily schedule (or manually) to fetch all workflows from your n8n instance using the n8n API with full details including nodes, connections, settings, pinData, and tags. It converts each workflow into a clean, import-ready JSON file, sanitizes filenames, and uploads them to a specified /N8N-Backup directory in Nextcloud, creating the folder if needed.

Key features include automatic 7-day retention: it lists existing backup files, identifies those older than 7 days based on date prefixes, and deletes them to manage storage efficiently. Recent updates fixed the export format for perfect n8n UI compatibility—no arrays or metadata that could break imports.

Benefits: Provides reliable offsite backups for self-hosted n8n instances, prevents data loss, simplifies recovery, and automates maintenance. Ideal for teams relying on n8n for critical automations, ensuring compliance and quick restores without manual intervention.

Use cases: DevOps teams backing up production workflows, agencies managing client n8n setups, or any n8n user wanting secure, versioned storage in Nextcloud with minimal setup (just add credentials).

$14.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related HR & Operations workflows

More from Aisha Haddad

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.