Implement a dual-redundancy backup system using this n8n workflow template. Automatically save all n8n workflow configurations to Google Drive and GitHub for secure version control.
Download this n8n workflow template and start using it instantly.
n8n Self-Hosters: Users managing their own n8n instance who require reliable disaster recovery plans.
DevOps Teams: Engineers needing structured version control (GitHub) for their critical n8n templates and configurations.
Maintaining the integrity of your automation infrastructure is paramount. This robust n8n workflow provides a secure, reliable, and scheduled method for backing up every active n8n workflow in your instance. By leveraging the n8n API, this system exports each configuration and uploads it to two separate locations: Google Drive (for quick storage) and GitHub (for detailed version history).
This ensures redundancy and allows you to easily track changes using Git, treating your n8n workflow configurations like code. The included n8n trigger allows for scheduled execution, meaning your backup process runs automatically without manual intervention. This specific n8n workflow is a crucial tool for operational resilience.
The entire process is initiated by an n8n trigger, either manually or via a schedule set to run every 12 hours.
Config n8n node. It then immediately uses the Google Drive n8n node to create a uniquely timestamped folder for the backup.Get All Workflows n8n node calls the local n8n API to retrieve JSON data for every active n8n workflow in the instance.Loop Over Workflows n8n node processes each workflow item individually. Each item is converted into a standard JSON file using the Convert to JSON File n8n node.Code n8n node prepares the file path, sanitizing the workflow name and structuring the path (e.g., repopath/YYYY/MM/workflowname.json). Check if File Exists n8n node attempts to retrieve the file from GitHub. An If n8n node determines if the file already exists in the repository. If it exists, the Update GitHub File n8n node commits the new version; if not, the Create GitHub File n8n node commits it for the first time. This ensures proper Git history.Final Summary n8n node and sends detailed notifications to Telegram and Discord, confirming the successful completion of the n8n workflow backup.Get All Workflows n8n node.Config n8n node and update the parameters with your specific details, including repoowner, reponame, gdrivefolderid, and your telegramchatid. Schedule Every 12 Hours / Manual Trigger: This n8n trigger initiates the entire backup sequence twice daily or on demand.
Config (Set n8n node): Centralizes all environmental parameters like GitHub repository path, owner name, and Google Drive target folder ID, making the n8n workflow highly portable.
Get All Workflows (n8n n8n node): Connects to the host n8n API to pull metadata and full JSON definitions for all active n8n templates.
Create GDrive Folder (Google Drive n8n node): Creates a unique, timestamped folder for the current backup iteration, ensuring backups are organized chronologically.
Loop Over Workflows (Split In Batches n8n node): Ensures that each individual n8n workflow is processed sequentially for both Google Drive and GitHub operations.
Prepare GitHub Data (Code n8n node): A critical custom-logic n8n node that sanitizes the workflow name for filename safety and calculates the exact file path structure for the GitHub backup (using year/month folders).
Secure your automation logic. This powerful n8n workflow automatically backs up all active n8n templates and n8n workflows to Google Drive using the native n8n node and scheduled n8n trigger.

Restore n8n workflows and credentials easily in self-hosted environments. This essential n8n workflow uses CLI commands and dynamic pathing for automated disaster recovery and migration between n8n instances.

Build an n8n workflow to automatically analyze WordPress content using Claude Opus 4.5/OpenAI, generating and assigning SEO-optimized tags and taxonomy terms.

Use this robust n8n workflow to automatically back up all your n8n workflow configurations daily to Google Drive. Features include conditional logic, Gmail alerts, and Discord notifications. Get essential n8n templates here.

Use this robust n8n workflow template to schedule automatic, reliable backups of all your n8n workflow configurations directly to GitHub, ensuring version control and disaster recovery.








































