Nightly n8n backup to Google Drive
Needs changesWhat this workflow does
This workflow has 25 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Drive.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- GET CURRENT FOLDER (Google Drive): work with file folder
- GET CURRENT FOLDER CREATES (Google Drive): work with file folder
- Code: runs custom JavaScript code
- LIST OLD BACKUPS (Google Drive): work with file folder
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- you can delete (Code): runs custom JavaScript code
- Create n8n_old (Google Drive): work with folder
- Merge: merges the data from its input branches
- Create n8n_backups (Google Drive): work with folder
…plus 13 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Convert to/from binary data in Move Binary Data: replace with Convert to File or Extract from File.
- Item Lists (legacy) in Item Lists, Item Lists old: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Convert to/from binary data Move Binary Data | Convert to File or Extract from File |
| Item Lists (legacy) Item Lists, Item Lists old | Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used) |
Nodes used (10)
- Convert to/from binary data
n8n-nodes-base.moveBinaryData - Filter
n8n-nodes-base.filter - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Item Lists
n8n-nodes-base.itemLists - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - n8n
n8n-nodes-base.n8n
From the author
Description This template creates a nightly backup of all n8n workflows and saves them to a Google Drive folder. Each night, the previous night's backups are moved to an “n8nold” folder and renamed with the corresponding date. Backups older than a specified…