---
title: "Restore any earlier version of your app"
description: "Every change to a Hercules app saves a new version. Revert from the Versions tab, and step forward again later. Your database records stay as they are."
---

# Restore any earlier version of your app

Every change to an app you build on Hercules saves a new version. If a change breaks the quote form or the dispatch board, open the Versions tab, pick the last version that worked and revert to it.

Reverting rolls back your app's code, configuration and database structure, and the records in your database stay as they are.

- **A version per change.** Hercules names each version for what changed and records when it happened.
- **Revert from two places.** Use the Versions tab or the switcher next to Publish.
- **Kept forever.** Reverting deletes nothing, and the history has no expiration.

## What can you do with version history?

### See every change in order

The Versions tab lists each version with what was added or changed and when. It's the first place to look after a hand edit to the code breaks something. [Version Control](https://hercules.app/docs/apps/version-control)

### Revert from two places

Click a version in the Versions tab or in the version switcher next to the Publish button, then confirm. Hercules recommends waiting about 15 seconds before you check the app. [Version Control](https://hercules.app/docs/apps/version-control)

### Go forward again

Hercules keeps every version, so you can return to a later one whenever you like. If you revert from version 10 to version 6 and then make a change, that change becomes version 11. [Version Control](https://hercules.app/docs/apps/version-control)

### Know what a version holds

A version is a complete snapshot of your app's code, configuration and database structure at one point in time. A version doesn't include files uploaded to Hercules Files & Media or records in your database. [Version Control](https://hercules.app/docs/apps/version-control)

### Fix forward when records matter

If rolling back would undo good work, ask Hercules to fix the problem in a new chat instead. For a bigger fix, use a branch, a separate copy of the app for building and testing, with Replicate production data on to start from a one-time copy of your production records. [Branches](https://hercules.app/docs/apps/branches)

### Duplicate an app before a big rework

From the Dashboard, open an app's three-dot menu and click Duplicate. The copy carries the code, files and settings, and starts unpublished. [Version Control](https://hercules.app/docs/apps/version-control)

## How do you undo a change that broke something?

### 1. Find the version that worked

Open the Versions tab and find the last version saved before the break. In this hypothetical example, an estimator at a metal fabrication shop finds the version saved before someone edited the quote page by hand.

### 2. Revert and wait

She clicks that version and confirms, and Hercules restores the earlier code and rebuilds the app. Quotes calculate again, so she goes back to sending bids, and quotes saved in the meantime are still in the database.

### 3. Make the change again with Hercules

> Add a 5% rush fee to quotes when the delivery date is less than a week away.

Hercules makes the change the hand edit was trying to make and saves it as the next version.

## What could a business do with it?

In this hypothetical example, a regional freight broker fixes a broken page forward instead of reverting, so a newer change their team relies on stays in place. A change to the carrier page leaves the rate column blank. The same version added an invoice field the billing team already uses, and a revert would remove both. The operations lead asks Hercules in a new chat to fix the rate column, and Hercules saves the fix as a new version.

## What should you know before you revert?

- Versions run in one line with no branching. To build two things side by side, use [branches](/features/branches).
- Hercules names each version for you. You can't rename or tag versions.
- See what each plan includes on the [pricing page](https://hercules.app/pricing).

## Related features

- Use [App Builder](/products/app-builder) to describe a change in chat when you want Hercules to build it.
- Use [Branches](/features/branches) to hold a risky change on a copy of the app when you want to merge it only once it works.
- Use [Database](/features/database) to manage your app's records when you need them kept separate from its versions.
- Use [Code Editor](/features/code-editor) to edit the code by hand when a developer wants exact control.

## How do you get started?

Open any app and click Versions in the sidebar to see every change it has saved so far. Start building.

## Frequently asked questions

### Why does a revert take time?

A revert restores the code, rebuilds the app and updates the preview. On a complex app that takes up to about 30 seconds. [Version Control](https://hercules.app/docs/apps/version-control)

### Do Merge and Publish change my records?

Merge and Publish leave the records in your database as they are, the same as a revert. [Version Control](https://hercules.app/docs/apps/version-control)

### How do I protect my records before a risky change?

Export your database from More, then Export, before you make the change. Database export and scheduled database backups each need a paid plan. [Export data](https://hercules.app/docs/apps/export-data)

### What does a duplicate leave out?

A duplicate app leaves out domains, published URLs and commerce settings, among other things. [Version Control](https://hercules.app/docs/apps/version-control)

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Why does a revert take time?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A revert restores the code, rebuilds the app and updates the preview. On a complex app that takes up to about 30 seconds. Version Control"
      }
    },
    {
      "@type": "Question",
      "name": "Do Merge and Publish change my records?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Merge and Publish leave the records in your database as they are, the same as a revert. Version Control"
      }
    },
    {
      "@type": "Question",
      "name": "How do I protect my records before a risky change?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Export your database from More, then Export, before you make the change. Database export and scheduled database backups each need a paid plan. Export data"
      }
    },
    {
      "@type": "Question",
      "name": "What does a duplicate leave out?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A duplicate app leaves out domains, published URLs and commerce settings, among other things. Version Control"
      }
    }
  ]
}
```
