{"product_id":"n8n-github-backup-workflow-with-vivere-heartbeat-alerts","title":"n8n GitHub Backup Workflow with Vivere Heartbeat Alerts","description":"\u003ch3\u003eNever wonder “what changed?”—nightly backup of your n8n workflows to GitHub with Vivere Heartbeat alerts\u003c\/h3\u003e\n\u003cp\u003eThis n8n GitHub Backup Workflow automatically exports \u003cstrong\u003eall workflows\u003c\/strong\u003e from your n8n instance every night and stores them as JSON files in a \u003cstrong\u003eGitHub repository\u003c\/strong\u003e. It also reports backup status to a \u003cstrong\u003eVivere Heartbeat\u003c\/strong\u003e monitor so you’re alerted if a run fails or is missed.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns nightly at 02:00\u003c\/strong\u003e via a schedule trigger.\u003c\/li\u003e\n  \u003cli\u003eSends a \u003cstrong\u003e“start” ping\u003c\/strong\u003e to your \u003cstrong\u003eVivere Heartbeat monitor\u003c\/strong\u003e to indicate the backup run has begun.\u003c\/li\u003e\n  \u003cli\u003eUses the \u003cstrong\u003en8n API\u003c\/strong\u003e to fetch all workflows and formats each workflow into a prettified JSON file named: \u003cstrong\u003eworkflows\/\u0026lt;name\u0026gt;-\u0026lt;id\u0026gt;.json\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eFor each workflow file, reads the existing file from \u003cstrong\u003eGitHub\u003c\/strong\u003e and decides whether to:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eCreate\u003c\/strong\u003e it if it doesn’t exist,\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eUpdate\u003c\/strong\u003e it if it has changed (using the file \u003cstrong\u003eSHA\u003c\/strong\u003e), or\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSkip\u003c\/strong\u003e it when unchanged.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003eWrites only \u003cstrong\u003enew or changed\u003c\/strong\u003e workflow files back to GitHub using the \u003cstrong\u003eGitHub Contents API\u003c\/strong\u003e, tracking each file outcome (created\/updated\/unchanged\/failed).\u003c\/li\u003e\n  \u003cli\u003eSummarizes the run and pings \u003cstrong\u003eVivere\u003c\/strong\u003e with \u003cstrong\u003esuccess\u003c\/strong\u003e (counts + change log) or \u003cstrong\u003efailure\u003c\/strong\u003e (including an error message), and \u003cstrong\u003estops the execution as failed\u003c\/strong\u003e if any backup fails.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators and automation engineers want \u003cstrong\u003eversioned workflow backups\u003c\/strong\u003e in GitHub.\u003c\/li\u003e\n  \u003cli\u003eTeams need \u003cstrong\u003echange visibility\u003c\/strong\u003e by capturing workflow updates as JSON snapshots.\u003c\/li\u003e\n  \u003cli\u003eMonitoring backup health with \u003cstrong\u003eVivere Heartbeat\u003c\/strong\u003e for faster incident response when backups fail or don’t complete.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n API\u003c\/strong\u003e credential for exporting workflows.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGitHub\u003c\/strong\u003e repository integration using GitHub Contents read\/write (file SHA handling).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eVivere Heartbeat\u003c\/strong\u003e monitor ping URL and API key for start\/success\/failure reporting.\u003c\/li\u003e\n  \u003cli\u003eNodes\/tech stack: \u003cstrong\u003eschedule trigger\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003en8n-nodes-vivere\u003c\/strong\u003e, and a \u003cstrong\u003esticky note\u003c\/strong\u003e for guidance.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46326520250547,"sku":"N8N-21822","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/K9YcOcBxSd2MhZFhq14Uu_XIa9s6dV.png?v=1793351364","url":"https:\/\/buyflowscripts.com\/products\/n8n-github-backup-workflow-with-vivere-heartbeat-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}