Automated n8n Workflow Backup to Nextcloud
detail.loadingPreview
Safeguard your n8n workflows with this automation that regularly backs up all your active workflows to Nextcloud. Ensure business continuity and peace of mind by having accessible copies of your valuable automations.
About This Workflow
This robust n8n workflow provides a comprehensive solution for automatically backing up all your n8n workflows to a designated Nextcloud instance. It's designed for reliability, offering both manual execution and a configurable scheduled trigger (defaulting to every 6 hours). The automation first retrieves a list of all active workflows, then fetches the detailed JSON for each. Finally, it converts this data into a storable format and uploads it to your specified Nextcloud folder, using the workflow's name for easy identification and retrieval. This ensures that your valuable automations are securely stored off-site and readily available for restoration or migration.
Key Features
- Automated Scheduling: Set and forget with a customizable cron schedule (defaulting to every 6 hours) for continuous backup.
- Manual Backup Trigger: Initiate an immediate backup on demand whenever necessary.
- Comprehensive Workflow Backup: Captures the full JSON definition of all your active n8n workflows.
- Seamless Nextcloud Integration: Securely store backups in your private Nextcloud environment.
- Dynamic File Naming: Backed-up workflow files are automatically named after the original workflow for easy organization and retrieval.
How To Use
- Configure Triggers: Decide on your backup frequency. The
Cronnode is pre-configured to run every 6 hours; adjust itscronExpressionparameter for a different schedule. You can also trigger a backup manually via theOn clicking 'execute'node. - Update n8n Host URL: If your n8n instance is not running on
localhost:5678(e.g., if this workflow is running on a different n8n instance or if your main n8n is on a custom domain/port), update theurlparameter in bothGet Workflow ListandGet WorkflowHTTP Request nodes to point to your actual n8n API endpoint. - Configure Nextcloud Credentials: Ensure the
NextCloud1node has valid Nextcloud credentials set up (these are managed in n8n's Credentials section, not directly in the workflow JSON). - Customize Nextcloud Path: Modify the
pathparameter in theNextCloud1node (e.g.,/n8n/Backup/lacnet1/) to your desired backup folder structure within Nextcloud.
Apps Used
Workflow JSON
{
"id": "ec1b33ea-d941-460d-b2bc-79b15eb4945a",
"name": "Automated n8n Workflow Backup to Nextcloud",
"nodes": 11,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: ec1b33ea-d941...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.