Bibliothek / Code, Git & Entwicklertools
Code, Git & Entwicklertools
n8n-Workflows als JSON in Google Drive sichern
Zeitgesteuert oder manuell legt der Workflow einen datierten Google-Drive-Ordner an, exportiert jeden n8n-Workflow über die n8n-API und lädt jeden als JSON-Datei hoch.
Was sie bewirkt
# 🔄 Workflow Backup for n8n → Google Drive An automated system to back up all your n8n workflows and store them as .json files in Google Drive. Perfect for creators, teams, and agencies who want to protect their work without manual effort. --- ## ✨ What this workflow does - Creates a new folder in Google Drive named Workflow Backups [date] - Fetches all workflows from your n8n instance via the n8n API - Converts each workflow into a .json file - Uploads the files to the created backup folder - (Optionally) Deletes old backup folders to keep things tidy - Can run manually or automatically (e.g., weekly) --- ## 🛠 Requirements - A Google account with access to Google Drive - Connected Google Drive OAuth2 credentials in n8n - Active n8n API credentials - Enabled trigger: Manual or Schedule --- ## ⚙️ Installation Instructions 1. Import the workflow (Workflow_Backup_copy.json) into your n8n instance 2. Set up credentials: - Replace Google demo with your own Google Drive OAuth2 in the following nodes: - Create new folder - Get folders - Upload workflow - delete folder - Replace n8n demo with your n8n API credentials in Get n8n workflow 3. Replace the folder ID in the Create new folder node with the target backup folder on your Drive (folderId) 4. Optional: Configure Schedule Trigger to run weekly or at your preferred interval --- ## 📦 Workflow Structure Manual/Schedule Trigger ↓ Create new folder (Google Drive) ↓ Get n8n workflows (via API) ↓ Loop through workflows ↓ Convert to .json files ↓ Upload to Drive ↓ (Optional) Delete old backup folders --- ## ✅ Tips - Add logic to retain only the latest X backups (e.g., last 3). - The workflow can run fully hands-free once scheduled. - Want to store files elsewhere? Swap out the upload node for Dropbox, S3, etc.
Die Schritte
- Convert to File
- Schedule Trigger
- Filter
- delete folder
- Get folders
- Manual trigger
- Create new folder
- Loop
- Upload workflow
- Limit
- Get n8n workflow
Ähnliche Automatisierungen
Code, Git & Entwicklertoolsn8n-Workflows über die n8n-API zwischen Instanzen klonen33 SchritteCode, Git & EntwicklertoolsAlle n8n-Workflows aus Google-Drive-Backups wiederherstellen7 SchritteCode, Git & Entwicklertoolsn8n-Workflows mit der n8n-API zwischen Instanzen klonen14 SchritteCode, Git & Entwicklertoolsn8n-Workflows aus JSON mit Perplexity und Pinecone erstellen23 Schritte