Backup & Recovery Templates
4 workflow templates for backup & recovery automation
Backup All N8n Workflows to Google Drive Every 4 Hours
This workflow automates the backup of all n8n workflows to Google Drive on a scheduled basis (every 4 hours). It creates a new folder in Google Drive with a timestamp and saves each workflow as a JSON file within that folder, subsequently deleting older backups to maintain a clean and simplified backup system.
Backup Workflows to Github - N8n Template
**Note:** This workflow uses the internal API which is not official. This workflow might break in the future. The workflow executes every night at 23:59. You can configure a different time bin the Cron node. Configure the GitHub nodes with your username, repo name, and the file path. In the HTTP Request nodes (making a request to `localhost:5678`), create Basic Auth credentials with your n8n instance username and password.
Backup Your Credentials to Github - N8n Template
Based on [Jonathan's](https://n8n.io/creators/jon-n8n/) work. Check out his templates. This workflow will backup your credentials to GitHub. It uses a CLI command to export all credentials. It then loops over the data, checks in GitHub to see if a file exists that uses the credential's ID. Once checked it will: - update the file on GitHub if it exists; - create a new file if it doesn't exist; - ignore if it's the same.
Nightly N8n Backup to Dropbox
This template will create a nightly backup of all your n8n workflows to a Dropbox folder. Each night, the previous night's backups are moved into an "old" folder, and renamed with the date they were taken. Backups over a specified age are deleted. (this is disabled by default for safety until you manually enable and verify it with your own setup) Prerequisites - Dropbox account and credentials - A destination folder for backups Setup - Update all dropbox nodes with your credential - Edit the **Schedule Trigger** node with the desired time to run the backup - Edit the **DESTINATION FOLDER** node to specify the path in dropbox to upload to. This should be a folder and *include* the trailing / - If you want to automatically purge old backups - Edit the **PURGE DAYS** node to specify the age to purge - Enable the **PURGE DAYS** node, and the 3 subsequent nodes - Enable the workflow to run on the specified schedule