Use this robust n8n workflow to automatically backup all your existing n8n workflow designs daily to Google Drive. This n8n template ensures essential system redundancy and disaster recovery.
Download this n8n workflow template and start using it instantly.
Maintaining reliable n8n infrastructure requires a solid disaster recovery strategy. This automation solves the critical problem of configuration loss by providing a scheduled backup of every single n8n workflow currently deployed on your instance.
This robust n8n workflow utilizes the internal n8n API endpoints to programmatically extract the JSON definitions of all your workflows. It then bundles these definitions and uploads them as .json files to a specified folder in Google Drive. This ensures that even if your primary n8n server fails, you have an external, up-to-date archive of all your custom automation logic, making recovery instantaneous. It's an indispensable n8n node configuration for stability.
This automation is triggered daily at 2:30 AM via the Cron n8n trigger, though a manual trigger is included for immediate testing. The flow proceeds through several key stages:
Get Workflow List n8n node, configured as an HTTP Request, calls your n8n instance's /rest/workflows endpoint using Basic Authentication. This retrieves a list of all existing n8n workflow IDs and names.Map n8n node processes the resulting list, splitting the data so that subsequent nodes can iterate over each workflow ID individually.Get Workflow HTTP Request n8n node fetches the detailed JSON definition for each specific workflow ID using the /rest/workflows/{id} endpoint. Merge n8n node combines the original item (containing the workflow name) with the newly fetched workflow JSON content. This is crucial for naming the backup file accurately.FunctionItem and Move Binary Data n8n node ensure the JSON structure is correctly converted into binary data, preparing it for file upload.Google Drive n8n node receives the binary data, names the file using the workflow's name (e.g., MyWorkflow.json), and uploads it to the designated backup folder, completing the daily backup of your critical n8n templates.n8n Creds (or update the credentials in the Get Workflow List and Get Workflow nodes).Google Drive n8n node.Google Drive n8n node, replace the placeholder text in the 'Parents' field with the specific Folder ID from your Google Drive where you wish to store the backups. The folder ID is found in the URL when viewing the folder in your browser.Run Daily at 2:30am n8n trigger to schedule the automatic backups. Run Daily at 2:30am (Cron): The primary n8n trigger, scheduled to execute the backup process every morning at 2:30 AM.
Get Workflow List (HTTP Request n8n node): Fetches metadata about all deployed n8n templates from the local n8n API endpoint (/rest/workflows). Requires Basic Auth credentials.
Map (Function n8n node): Takes the array output of workflow lists and maps each workflow item to a new execution item, enabling parallel processing of each individual n8n workflow.
Get Workflow (HTTP Request n8n node): Dynamically retrieves the full JSON definition of a single n8n workflow based on its ID.
Merge (Merge n8n node): Combines the workflow metadata (like the name) with the actual JSON content, using 'Merge By Index' mode.
Move Binary Data (n8n node): Converts the final merged JSON data into a binary file format, suitable for cloud upload.
Workflow Name.json) into the specified Google Drive folder.A comprehensive n8n workflow to automate daily backups of all your n8n workflows to a Bitbucket repository, ensuring version control and rate limit compliance.

Use this powerful n8n workflow to automatically backup and delete inactive n8n templates. Clean your instance, save backups to Google Drive, and manage your n8n nodes efficiently.

Set up an automated n8n workflow backup system. This n8n templates guide shows how to save all your live n8n workflows to Google Drive every 4 hours using the n8n node and internal API, complete with backup rotation.

Use this robust n8n workflow to automatically backup and version your production n8n workflows to a secondary n8n instance using the n8n API. Includes rolling retention and Notion tracking.

Accélérateur de Chiffre d'Affaires : Automatisez votre entreprise pour la rendre plus visible sur Google, pour trouver de nouveaux Clients, pour gagner du temps







































