How n8n workflow history supports rollback
When a workflow change breaks production, the fastest route back to the last good state is usually n8n's own workflow history, provided the change was saved in a way that created a version you can restore. Workflow history lets an operator open an earlier saved version of a workflow and restore it in the editor, which is the first step most teams take during an incident. It is used by workflow owners, automation administrators and on-call engineers who need to undo a edit quickly, and it is often the only record of who changed what and when for a workflow that was edited directly on the canvas. Before relying on it, confirm on your installed version how versions are created, how long they are kept and whether restoring a version is available to every role you have. n8n ships minor releases roughly weekly, and n8n 2.43, released on 6 October 2026, is an example of how quickly the editor and its history behavior can change, so read the workflow history documentation for your exact version rather than a guide written for an older release.
Workflow history does not replace a deliberate change record. It does not capture the reasons for a change, it does not hold a review or approval, and it does not tell you what happened to the executions that ran during the bad window. Restoring a version also restores only the workflow definition, not the credentials, variables or external systems the workflow touched, so a rollback can leave data already written to a downstream system in place. For changes that must be traceable across environments, use source control. Plan this before an incident: decide how long versions must be retained for your audit needs, who is allowed to restore a version in production, and whether the rollback procedure should be a Git revert instead. Test the restore on a non-production instance with a deliberately broken edit, then record the steps in your runbook so the on-call engineer does not have to work out the procedure during an outage.
Choosing between history, executions, exports and Git
This table compares five records that hold n8n workflow changes or runs: workflow history, execution logs, JSON exports, n8n packages and Git-backed environments. Read each row to see what the record captures, who can use it to restore earlier work, and where it lives. The main takeaway is that only Git gives you a reviewable, diffable record of change across instances, while history is a quick undo inside one instance.
| Record | What it captures | Who can use it to restore | Where it lives and when it fits |
|---|---|---|---|
| Workflow history | Earlier saved versions of one workflow's nodes and connections, created as the workflow is saved | Users with edit access to the workflow in the editor, subject to your plan and edition | Inside the n8n instance database. Fits quick undo of a recent edit on the same instance |
| Execution logs | Records of each run, including inputs, outputs and errors, for the version that ran | Users who can view executions. Execution data does not restore a workflow by itself | Inside the n8n instance, subject to execution data pruning settings. Fits diagnosing what ran and why it failed |
| JSON export | One workflow or set of workflows as a JSON file, without the instance's history | Anyone who imports the file into an instance with the right permissions | A file you store yourself. Fits a one-time copy or a backup outside n8n, with credentials excluded |
| n8n package (.n8np) | A workflow with its declared dependencies and a manifest of what the target must supply | Anyone who imports the package into a target instance, which then holds the new copy | A file that moves between instances. Fits transferring a workflow with its dependencies, not tracking edits over time |
| Git-backed environments | Commits of workflow definitions across branches, with author, message and diff for each change | Users with repository access, who can revert or re-apply a commit through the Git provider and then pull to an instance | In a Git repository you operate, and the record is the commit history. Fits review, approval and rollback across environments; environments with Git are a Business or Enterprise feature |
How retention and features differ by plan
Workflow history depth and the features around it depend on which n8n edition and plan you run. The plan split decides whether Git-based environments are available at all, so check it before you design your change process.
Community edition baseline
The Community edition is free to self-host and is the starting point for many teams. It does not include Git-based environments, so version history inside the editor is the only built-in way to step back a workflow change unless you add your own Git process outside n8n. Confirm with n8n exactly how much history the Community edition keeps and whether any retention setting is adjustable on your own server before you rely on it for rollback.
n8n pricingStarter and Pro cloud plans
Starter and Pro are cloud plans billed per month, and n8n lists them at 20 euros and 50 euros per month billed annually. Neither is part of the self-hosted model this page assumes, and both lack Git-based environments in the plan split. If your organization needs cloud-hosted n8n for a short period, ask n8n whether history retention on these plans matches what you expect for production rollback.
Business plan with Git environments
The Business plan is listed at 667 euros per month billed annually and is currently self-hosted only. It includes environments with Git, which lets workflow changes move through branches and pull requests with the Git history acting as the change record. Ask n8n whether history retention on Business differs from the in-editor history on other plans, because Git may become your primary rollback record.
Enterprise plan and support
Enterprise is priced on request for self-hosted or cloud and adds dedicated support with an SLA. It also includes the features that come with Business, so Git-based environments are available there as well. Ask n8n to confirm in writing the history retention, support response terms and any log streaming limits that apply to your contract before you finalize a rollback procedure.
Confirming retention with n8n
No history retention figure is set out here, and retention can differ by edition, plan and version. Before you write a rollback runbook, get the retention period, the number of versions kept and whether deleted workflows keep history from n8n in writing. Record the answer against the n8n version you run, because a later release can change it.
n8n release notesWhen Git is the better record of change
Administrators who need to undo a bad edit within minutes care most about speed and scope. In-app version history is the shortest route for one workflow because it sits next to the workflow on the running instance. Git only helps this group if the team already operates a repository for n8n.
- Single workflow restores: Select an earlier version from the workflow's history and restore it. This is the quickest path for one broken workflow.
- Dependency checks: Before restoring, identify other workflows, credentials and variables the affected workflow relies on, since restoring changes the live version.
- Execution review: Check recent executions to see what the faulty version did, so you know which side effects need cleanup.
- Retention awareness: Confirm with n8n's documentation how long versions are kept on your plan. Do not plan recovery around an assumed retention period.
- Instance-level recovery: Keep database backups for whole-instance recovery, because a single workflow restore does not cover a failed server or corrupted database.
Before relying on a restore procedure, rehearse it on a non-production instance and confirm that the on-call team knows which version to restore.
Change managers and auditors need to show who proposed a change, who approved it, what changed and when it reached production. A reviewable record is a sequence of attributable changes with approvals recorded before deployment. Git provides that structure outside the running instance, which makes it useful for evidence even when the instance itself is rebuilt.
- Commit history: Each change is a commit with an author, timestamp and message, so reviewers can trace how a workflow evolved.
- Branches and pull requests: Proposed changes stay on a branch until a pull request is reviewed, so approval is recorded before the change moves toward production.
- Approval rules: Required reviewers and protected branches are configured in the Git provider. Confirm that your provider can enforce the approval pattern your policy requires.
- Readable diffs: Reviewers compare changes between versions. Test with a real workflow export to confirm that the differences are clear enough for your reviewers to assess impact.
- Independent retention: The repository keeps history independently of any single n8n instance, so the record survives an instance being replaced.
Before you cite this record as change control evidence, ask your auditor which artifacts they expect and confirm that access logs and retention in your Git provider meet your policy.
The Git-backed environments feature is included only on the Business and Enterprise plans, according to n8n's pricing page. Teams on the free Community edition or the Starter and Pro cloud plans do not have this feature, so they need a different arrangement for change records. Plan choice therefore shapes the control model before any process is designed.
- Plan requirement: The pricing page lists environments with Git, along with SSO and LDAP and log streaming, as included only in the Business and Enterprise plans.
- Community edition gap: Without the Git feature, in-app version history is the built-in record. Exporting workflows to files and committing them yourself is a manual process that you must design, document and enforce.
- Hosting model: The pricing page lists the Business plan as currently self-hosted only. Confirm that this model fits your infrastructure and data handling requirements.
- Cost comparison: The Business plan is listed at 667 euros per month billed annually. Compare that figure with the cost of building and staffing a manual Git process, and confirm current terms with n8n.
- Current terms: Plan contents change over time, so check the pricing page and request the feature list in writing before purchase.
Before you commit to a change process, confirm in writing which features your chosen plan includes, and design the Git workflow only around those features.
Restoring an earlier workflow version safely
This sequence takes a workflow from a known bad state back to a known good version without touching production blindly. It confirms the restore in a non-production instance, checks the dependencies around it, and leaves a written record of what was rolled back and why.
Identify the last good version
Open the affected workflow in the editor and review its history panel to list saved versions with their timestamps and authors. Compare the candidate versions against the failure window, and check the execution log for the first failed run to pin down when the behavior changed. Record the version identifier you intend to restore. The step is done when you can state which version is the last good one and point to the evidence, such as a successful execution from that period.
Restore the version in a non-production instance first
Restore the chosen version in a development or staging instance rather than in production, so the change can be observed without live customer or system impact. Confirm that the restored workflow matches the expected node configuration and that the instance is not connected to production systems through shared credentials. The step is done when the restored copy runs a test execution cleanly and the team agrees it reflects the intended logic.
Check credentials and variables after restore
Verify that every credential the restored version references exists in the target instance, is shared with the right project, and points to the correct environment, since credentials are not portable between instances without the right encryption key. Confirm that environment-specific values come from the expected variables and that no value from a different environment has been pulled in. The step is done when each node that calls an external system authenticates successfully in the test run and the variable values match the target environment.
Confirm dependent workflows still behave
Identify workflows that call the restored workflow as a sub-workflow, or that read data it writes, and run them against the restored version to confirm their inputs and outputs still match. Check that any shared data stores, queues or downstream APIs receive the payloads they expect. The step is done when each dependent workflow completes a test run and the team has signed off on the interface between them.
Verify webhooks and schedules after restore
Trigger each webhook in the test instance and confirm the production path URLs and methods the upstream systems use are the ones the restored version exposes. Review schedule and polling triggers to confirm their intervals, time zones and active state match the intended configuration, and that no duplicate triggers run in parallel. The step is done when every trigger fires as expected and the team has confirmed nothing will run twice once production is updated.
Confirm the active state in production
Apply the verified version to production, making sure the workflow is published or activated only after the checks pass, and that any previously active version is deactivated so two versions do not run side by side. Watch the first production executions and compare them with the expected results from the test run. The step is done when production executions succeed and the active version matches the one you approved.
Record the rollback
Write a short rollback record that names the workflow, the failed version, the restored version, the reason for the rollback, the people who approved it, and the checks performed. Link the record to the incident or change ticket and note whether the fix belongs in a Git commit or a later review. The step is done when the record is stored where change reviewers can find it, because history inside n8n alone may not capture the full context of the decision.
How a change moves from edit to rollback
The path starts in the n8n editor, where a saved draft becomes a published version and n8n records a history entry for it. To roll back in the editor, you restore an earlier entry from history, which does not touch credentials or environment values held outside the workflow. If the team keeps workflows in Git, the rollback runs as a revert commit that is then deployed to the instance. Check that credentials and environment-specific values stay in the instance or the vault, not in the exported workflow definition.
Rollback paths through n8n version history and Git, with credentials and variables kept outside the workflow.
Security and operational risks of rolling back
Restoring an earlier workflow version changes what runs, what credentials it uses and who can make the change. The cards below cover the risks that tend to surface after a rollback, and the checks that keep a restore from creating a new incident.
Restored versions with outdated credential references
A saved version stores the node configuration as it was at that moment, including which credential each node points to. If that credential was later rotated, replaced or shared differently, restoring the old version can point a workflow at a stale or wrongly scoped connection. Compare the credentials referenced in the restored version with the ones in use today, and confirm the owner of each one before you publish. Review the n8n SSO and access control area for how credential ownership is governed.
SSO and access docsUnsaved changes lost in a restore
Restoring a version replaces the working definition, so edits made after the chosen version, but never saved as their own version, are gone. Teams often assume history holds everything they changed. Before you restore, export the current definition or note the changes you need to keep, and confirm with the editor what your retention settings keep and for how long. Treat the history view as a convenience record, not as a backup of every edit.
Executions running against a restored definition
Executions already running finish on the definition they started with, but new triggers, schedules and webhook calls use whatever version is now live. A restore can therefore change behavior mid-day for systems that depend on the workflow. Check which triggers are active, whether any long-running executions depend on the old logic, and whether downstream systems expect the output shape of the version you are restoring.
Who can restore and publish
Restoring a version is a change to production behavior, so the ability to restore should follow the same access rules as editing and publishing. Check which roles and projects allow restoring history, whether a restore bypasses any review step you rely on, and whether restore actions are visible in your audit trail. Confirm these settings against your plan, because some access controls and logging features depend on the edition you run.
Restores that bypass Git history
When an instance is linked to Git, a restore made in the editor can diverge from the repository, and the next pull or push may overwrite one side or the other. Decide in advance which record is authoritative for production, and make restores through the same path as other changes. Confirm how your environment handles conflicts before anyone restores a workflow that is under source control.
Access to stored history
Version history contains full workflow definitions, which can include webhook paths, node parameters and references to sensitive systems. Anyone who can view history can read those details even without edit rights. Check who can open the history of production workflows, and whether older versions contain values that should have been moved into credentials or variables before they were saved.
Questions buyers ask about n8n rollback and history
How much does it cost to set up a rollback process for n8n workflows?
Cost depends on scope, not on a fixed fee. The main components are the time to confirm which history features your plan includes, to write a restore procedure your team will follow, and to test a restore on a non-production instance. Setup is usually a one-time cost, while the ongoing cost is staff time for reviewing changes and running restores. DeployOpen does not publish prices. A written quote should list the environments in scope, the number of workflows, who performs each step, and whether the work includes Git-based records. Ask for each item separately so you can see what recurs and what does not.
How long does it take to put a workflow rollback process in place?
The duration depends on how many environments you run, how many people edit workflows, and how much evidence your compliance team needs. A single production instance with a small team usually needs less work than several instances with approvals and audit requirements. No researched duration is available for this work, so confirm the timeline in a written scope rather than relying on a general estimate. The schedule should separate discovery, the restore test, documentation, and staff training, because the restore test is the step most often skipped.
What does the work need from our team?
Expect to provide an owner for workflow changes, administrator access to the n8n instance, and a person who can confirm which plan and features are active. Your team should also name the people allowed to restore a version and decide how long history is kept. If you use the database or backups, your operations team must confirm where those are stored and how they are restored. Clear answers to these questions shorten the work, because most delays come from unclear ownership rather than from the technical restore itself.
Can our own team set up n8n version history and rollback without outside help?
Yes, many teams can handle the in-product steps themselves, since restoring an earlier workflow version is a visible action in the editor. The harder parts are deciding retention, writing a procedure for restores during incidents, and proving that the procedure works. Outside help is most useful when you need a tested process with evidence for an auditor, or when several environments must stay consistent. Check your plan first, because some version features and Git-based environments are limited to paid plans. Your team can run a restore test in a non-production instance to see whether the process is clear enough to hand over.
Which n8n plan includes Git-based environments for tracking workflow changes?
According to n8n's pricing page, environments with Git are included only in the Business and Enterprise plans. Business is listed at 667 euros per month billed annually and is currently self-hosted only, while Enterprise uses custom pricing. Confirm the current plan details on the pricing page before you buy, because plan contents can change. If you are on the Community edition or a lower paid tier, you can still keep your own record by exporting workflows and storing them in a repository, but that is a manual process that needs its own controls.
When is a Git-based record of workflow changes worth the plan upgrade?
A Git-based record is usually worth the upgrade when you need reviewable change history, branch-based promotion between environments, or an audit trail that lives outside the n8n instance. The main cost drivers are the number of environments, the size of your team, and how many approvals you need before a change goes live. Built-in version history is often enough for a small team with one production instance and light audit needs. Compare the plan price with the staff time you would otherwise spend on manual exports and restores, and ask a provider to quote both options against your actual workflow count.
What compliance evidence does a rollback process need for an audit?
Auditors usually want to see who changed a workflow, when the change happened, who approved it, and how you would restore a previous state. Your process should record these facts and keep them for a period your policy sets. Confirm with your auditor which controls apply and what evidence format they accept, since DeployOpen prepares systems and records for assessments but does not issue audit reports or certifications. A longer retention need, multiple environments, and formal approvals all increase the effort, so define those requirements before the scope is written.
Does restoring an earlier workflow version also restore past executions?
No. Restoring a version changes the workflow definition, but it does not change the record of runs that already happened. Execution history is a separate record of what ran, when, and with what result. Teams often expect both to roll back together, so document this difference in your restore procedure. If you need to reproduce a past run, you must keep the workflow version and the execution data separately, and confirm retention for each in your own environment.
How DeployOpen scopes change management for n8n
DeployOpen plans this work as a fixed-scope engagement, with the scope, deliverables and timelines agreed in writing before any work starts. For change management on n8n, that scope usually settles which instances keep version history, which workflows need a documented rollback procedure, whether Git becomes the system of record for workflow changes, and who on your side approves each step. Because the scope is written first, the quote follows from it. Ask for the quote to list each item separately, so you can see which parts are configuration of your existing n8n instance and which are new process or tooling. Confirm with your own team which plan or edition you run, since version history and Git-based environments depend on the features that plan includes, and the scope should state that dependency explicitly.
DeployOpen also prepares systems and evidence for compliance assessments, including the records an assessor may ask for about workflow changes: who changed what, when, and how a change was reversed. DeployOpen does not issue audit reports, attestations or certifications. Those come from independent auditors or certification bodies. The engagement produces the configuration, procedures and retained records those bodies will examine, and the written scope should say which evidence is delivered and in what format. Confirm early with your auditor which records they will accept and how long they expect them to be kept, because retention limits in your n8n plan may not match your own policy.
Ongoing support is available as a retainer for teams that want someone to review history settings after each n8n upgrade, rehearse rollbacks, and keep the procedure current as workflows change. A retainer is recurring, so ask for its scope, response expectations and what happens to the rollback procedure when n8n releases new versions. Costs that recur are usually the support hours and the periodic rehearsals, while the initial configuration and procedure writing are one-time. The more workflows, environments and approvers you have, the more the scope and any retainer will grow.

