{"product_id":"backup-n8n-workflows-to-google-drive-json-via-public-api","title":"Backup n8n Workflows to Google Drive (JSON) via Public API","description":"\u003ch3\u003eBack up your n8n workflows to Google Drive as JSON—on demand\u003c\/h3\u003e\n\u003cp\u003eThis n8n automation workflow fetches \u003cstrong\u003eall workflows from your n8n instance via the n8n Public API\u003c\/strong\u003e, converts each one into a \u003cstrong\u003epretty JSON file\u003c\/strong\u003e, and uploads the backups to a \u003cstrong\u003especified Google Drive folder\u003c\/strong\u003e—so you can reliably preserve and restore your automation logic.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns manually\u003c\/strong\u003e when you click \u003cstrong\u003e“Test workflow”\u003c\/strong\u003e in n8n.\u003c\/li\u003e\n  \u003cli\u003eCalls the \u003cstrong\u003en8n Public API\u003c\/strong\u003e using an API key to retrieve all workflows (via \u003cstrong\u003eGET \/workflows\u003c\/strong\u003e) from your configured n8n base URL (e.g., \u003cem\u003ehttp:\/\/localhost:5678\/api\/v1\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSplits the returned workflow list\u003c\/strong\u003e so each workflow is processed individually.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConverts each workflow object into a prettified JSON file\u003c\/strong\u003e with a \u003cstrong\u003esafe filename\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads every JSON backup file\u003c\/strong\u003e to the target \u003cstrong\u003eGoogle Drive folder\u003c\/strong\u003e you specify.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS operators\u003c\/strong\u003e who need periodic or ad-hoc backups of n8n automations for change management.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers\u003c\/strong\u003e who want a quick export trail before refactoring workflows.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnvironment management\u003c\/strong\u003e (dev\/staging\/prod) where you want consistent JSON snapshots stored in Google Drive.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDisaster recovery\u003c\/strong\u003e planning by keeping readable workflow JSON backups outside the n8n instance.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/approach:\u003c\/strong\u003e set, code, split out, sticky note, HTTP Request, Google Drive\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003en8n Public API\u003c\/strong\u003e (API key + base URL; requests \u003cstrong\u003eGET \/workflows\u003c\/strong\u003e)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eGoogle Drive\u003c\/strong\u003e via \u003cstrong\u003eOAuth2\u003c\/strong\u003e credential\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup requirements:\u003c\/strong\u003e create an n8n Public API key; configure the n8n instance base URL; add Google Drive OAuth2 credentials; set the target Google Drive folder ID\/URL in the upload step.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45950078648499,"sku":"N8N-19161","price":59.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/hFmqZcddz0yg-ezTLlnxm_aPjVaZ6t.png?v=1788513242","url":"https:\/\/buyflowscripts.com\/products\/backup-n8n-workflows-to-google-drive-json-via-public-api","provider":"N8N Commerce","version":"1.0","type":"link"}