The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Automated n8n Backup to Git",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "0 2 * * *"
}
]
}
},
"name": "Schedule: Daily 2 AM",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"command": "n8n-git push --workflows 2 --credentials 1 --folder-structure --defaults",
"cwd": "/"
},
"name": "Execute: n8n-git push",
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
470,
300
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{$json[\"exitCode\"]}}",
"operation": "equal",
"value2": 0
}
]
}
},
"name": "Check Exit Code",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
690,
300
]
},
{
"parameters": {
"authentication": "webhook",
"text": "\u2705 n8n backup successful!\n\nWorkflows backed up to Git at {{ $now.format('yyyy-MM-dd HH:mm:ss') }}",
"channel": "#backups"
},
"name": "Slack: Success",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [
910,
200
]
},
{
"parameters": {
"authentication": "webhook",
"text": "\u274c n8n backup failed!\n\nError output:\n```\n{{ $json[\"stderr\"] }}\n```\n\nExit code: {{ $json[\"exitCode\"] }}",
"channel": "#alerts"
},
"name": "Slack: Failure",
"type": "n8n-nodes-base.slack",
"typeVersion": 1,
"position": [
910,
400
]
}
],
"connections": {
"Schedule: Daily 2 AM": {
"main": [
[
{
"node": "Execute: n8n-git push",
"type": "main",
"index": 0
}
]
]
},
"Execute: n8n-git push": {
"main": [
[
{
"node": "Check Exit Code",
"type": "main",
"index": 0
}
]
]
},
"Check Exit Code": {
"main": [
[
{
"node": "Slack: Success",
"type": "main",
"index": 0
}
],
[
{
"node": "Slack: Failure",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Automated n8n Backup to Git. Uses executeCommand, slack. Scheduled trigger; 5 nodes.
Source: https://github.com/tcoretech/n8n-git/blob/5916cfed2561016afdc34c3f31d6ab13f59394eb/examples/workflow-automated-backup.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
티스토리 자동 포스팅 워크플로우. Uses executeCommand, slack. Scheduled trigger; 6 nodes.
VIS — Weekly Visual Health Audit. Uses executeCommand, slack. Scheduled trigger; 4 nodes.
This workflow transforms Google Sheets into a lightweight productivity engine and connects it to Slack for automated reminders and daily recaps. No extra SaaS, no extra cost – just a simple system tha
This workflow automatically pulls daily signup stats from your PostgreSQL database and shares them with your team across multiple channels. Every morning, it counts the number of new signups in the la
Stop the daily grind of checking multiple apps just to stay updated. This template automates the creation of recurring digests by querying a powerful AI assistant you build on the Super platform.