{"product_id":"n8n-cron-backup-export-workflows-to-nextcloud-discord","title":"n8n Cron Backup: Export Workflows to Nextcloud + Discord","description":"\u003ch3\u003eAutomatic n8n Workflow Backups to Nextcloud + Discord Alerts\u003c\/h3\u003e\n\u003cp\u003eThis n8n Cron Backup workflow exports every workflow from your n8n instance using the n8n API, saves each workflow as a JSON file to \u003cstrong\u003eNextcloud\u003c\/strong\u003e, and posts a \u003cstrong\u003eDiscord\u003c\/strong\u003e message when the backup run completes—either on a schedule (4:00 AM America\/Edmonton) or when you manually execute it.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns on a Cron schedule or manually\u003c\/strong\u003e (daily at 4:00 AM America\/Edmonton, or start on demand).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetrieves all workflows\u003c\/strong\u003e from n8n via the \u003cstrong\u003en8n API\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoops through each workflow ID\u003c\/strong\u003e and fetches the full workflow JSON for that ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExports each workflow JSON\u003c\/strong\u003e by converting it into a binary file.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads the backup files to Nextcloud\u003c\/strong\u003e into your configured backup folder (e.g., \u003ccode\u003e\/N8N Workflow Backup\/\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends a completion notification to Discord\u003c\/strong\u003e after the entire batch finishes.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eKeep an \u003cstrong\u003eoff-platform backup\u003c\/strong\u003e of your n8n automations in case you need to restore workflows later.\u003c\/li\u003e\n  \u003cli\u003eFor automation engineers and SaaS operators, maintain a reliable \u003cstrong\u003edaily workflow export\u003c\/strong\u003e without manual effort.\u003c\/li\u003e\n  \u003cli\u003eGet visibility via \u003cstrong\u003eDiscord alerts\u003c\/strong\u003e so you know backups are running and completing as expected.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n + Cron\u003c\/strong\u003e: schedules the backup loop daily (4:00 AM America\/Edmonton) or supports manual execution.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n API\u003c\/strong\u003e: lists workflow IDs and fetches each workflow’s JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNextcloud\u003c\/strong\u003e: uploads each exported workflow JSON file to the selected backup folder path.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDiscord OAuth2\u003c\/strong\u003e: posts a completion message to your configured guild (server) and channel.\u003c\/li\u003e\n  \u003cli\u003eWorkflow structure includes nodes such as \u003cstrong\u003esplit out\u003c\/strong\u003e and \u003cstrong\u003esticky note\u003c\/strong\u003e to support iterative export and clarity.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup checklist\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCreate\/select an \u003cstrong\u003en8n API credential\u003c\/strong\u003e with permission to read workflows.\u003c\/li\u003e\n  \u003cli\u003eCreate\/select a \u003cstrong\u003eNextcloud credential\u003c\/strong\u003e and ensure the target folder exists (or update the upload path).\u003c\/li\u003e\n  \u003cli\u003eCreate\/select a \u003cstrong\u003eDiscord OAuth2 credential\u003c\/strong\u003e, then set the guild ID and channel ID for completion notifications.\u003c\/li\u003e\n  \u003cli\u003eOptionally adjust the \u003cstrong\u003eCron time\u003c\/strong\u003e and workflow timezone to match your preferred backup window.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46072076140723,"sku":"N8N-19805","price":7.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Gv_tZZMaanJ8XJAfime_v_5IEDD4UP.png?v=1790067885","url":"https:\/\/buyflowscripts.com\/products\/n8n-cron-backup-export-workflows-to-nextcloud-discord","provider":"N8N Commerce","version":"1.0","type":"link"}