⚙️ Backup n8n workflows with versioning and Notion tracking

765 views · ⚙️ DevOps & CI/CD

Description

Copy n8n workflows to a slave n8n repository

Inspired by Alex Kim’s workflow, this version adds the ability to keep multiple versions of the same workflow on the destination instance. Each copied workflow’s name is prefixed with the date (YYYY_MM_DD_), enabling simple version tracking. Process details and workflow counts are recorded centrally in Notion.

How it works

Rolling retention policy example:

How to use

  1. Create a Notion database with one page and three fields:

    • sequence: Should contain "prefix".
    • Value: Today’s date as YYYY_MM_DD_.
    • Comment: Number of saved workflows.
  2. Configure the Notion node:

    • Enter your Notion credentials.
    • Link to the created database/page.
  3. Update the “Subtract From Date” node:

    • Set how many days’ versions you want to keep (default: 2 days).
    • Set the limit to 1 in the “Limit” node for testing.
  4. Input credentials for both source and destination n8n instances.

Requirements

Need Help?

🔗 Nodes Used

Notion, n8n, Filter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup