workflows.fit
Back to n8n workflows
n8n templateFreeBy Octoleo

Backup workflows to Git repository on Gitea

Overview This workflow automates the backup of all workflows from your system to a Git repository hosted on Gitea. It runs on a scheduled trigger, fetching, encoding, and committing workflow data, ensuring seamless ve...

DevelopmentCore NodesSetN8nSchedule TriggerSticky Note
Loading interactive preview...

Template notes

Overview This workflow automates the backup of all workflows from your system to a Git repository hosted on Gitea. It runs on a scheduled trigger, fetching, encoding, and committing workflow data, ensuring seamless version control and disaster recovery.

📌 Quick Setup: Just update three global variables and configure authentication—no manual exports needed!

---

How It Works (Quick Glance) 1️⃣ Scheduled Execution → Runs automatically at defined intervals. 2️⃣ Fetch Workflows → Uses the API to retrieve all workflows. 3️⃣ Process Workflows → Converts workflow data into a Git-friendly format. 4️⃣ Commit & Push to Git → Saves workflows in a Gitea repository.

---

Setup Steps (⚡ Takes ~5 min)

1️⃣ Set Global Variables Go to the Globals section in the workflow and update: - repo.url → https://your-gitea-instance.com (Replace with your actual Gitea URL) - repo.name → workflows (Repository name where backups will be stored) - repo.owner → octoleo (Gitea account that owns the repository)

📌 These three variables define where the workflows are stored.