What This Workflow Does
This automated workflow backs up your n8n workflows to Microsoft OneDrive on a scheduled basis. It retrieves all your current workflows, removes outdated backup folders to save storage space, creates JSON files of your workflows, and sends you an email confirmation when the backup is complete. This ensures your critical workflow configurations are always safely stored and versioned in the cloud.
How It Works
The workflow operates through the following process:
- A scheduled trigger initiates the backup process at your specified interval
- The workflow connects to n8n and retrieves all existing workflows
- It checks OneDrive for previous backup folders and deletes outdated versions
- The workflow converts your n8n workflows into JSON files for storage
- Files are uploaded to a new timestamped backup folder in OneDrive
- A confirmation email is sent via Microsoft Outlook notifying you of the successful backup
- The switch node manages conditional logic based on backup status
Use Cases
- Regular backup of production workflows to protect against accidental deletion or corruption
- Version control and audit trail for compliance requirements in regulated industries
- Disaster recovery planning to quickly restore workflows in case of system failure
- Workflow archival and documentation for team knowledge management
- Migration preparation when moving workflows between n8n instances or environments
Nodes Used
- Schedule Trigger – Initiates the workflow at regular intervals
- n8n Node – Retrieves your workflows from n8n
- Microsoft OneDrive – Manages backup folder creation and file uploads
- Code Node – Processes and transforms workflow data
- Switch Node – Routes workflow based on conditions and status checks
- Split in Batches – Processes multiple workflows efficiently
- Merge Node – Combines processed workflow data
- Convert to File – Transforms workflow data into JSON files
- Microsoft Outlook – Sends email notifications
- Sticky Note – Provides documentation within the workflow
Prerequisites
- Active n8n account with administrative access to retrieve workflows
- Microsoft OneDrive account with available storage space
- Microsoft Outlook email account configured for notifications
- n8n credentials properly configured for API authentication
- Microsoft Graph API permissions enabled for OneDrive and Outlook access
- Scheduled workflow execution enabled in your n8n instance
Difficulty Level
Intermediate. This workflow requires basic understanding of n8n concepts including node configuration, credential management, and conditional logic. Some familiarity with JSON data structures and Microsoft cloud services is helpful but not essential. The workflow is suitable for users who have completed basic n8n tutorials and are ready to implement automation across multiple platforms.
This workflow template is shared under the n8n fair-code license. Free to use and modify.
Leave a Reply