# What is the difference between Revert and Restore?

## Problem

You need to undo FileWave model changes, but **Revert to Last Model** and `fwcontrol server restore` do different jobs.

Use revert when you want to discard changes that have not been published yet. Use restore when you need to make an older published model current again.

In FileWave Central, revert is available from **Server &gt; Revert to Last Model**.

![revert.png](https://kb.filewave.com/uploads/images/gallery/2023-06/iRlxCw3oGlM71P7t-revert.png)

Restore is run from the command line:

```shell
sudo fwcontrol server restore [version]
```

<p class="callout info">When you work in FileWave Central, your changes are made in the next model. They do not affect managed devices until you update the model.</p>

## Resolution

### Revert

Revert discards unpublished model changes and returns FileWave Central to the currently deployed model.

For example, the deployed model is 10. You open FileWave Central and make changes that would become model 11 when published.

- You create a Fileset called **My Fileset A**.
- You delete a Fileset called **Old Fileset B**.
- You move the association for **Fileset C** from **Group 1** to **Group 2**.

If you choose **Revert to Last Model** before updating the model, FileWave discards those unpublished changes and goes back to model 10.

If you already updated the model to 11, revert no longer helps because model 11 is now the current model.

### Restore

Restore makes a previous published model current again.

Using the same example, if you published model 11 and then realized model 10 was the last good model, restore model 10:

```shell
sudo fwcontrol server restore 10
```

<p class="callout info">The server keeps the last 20 models.</p>

After the command finishes, quit FileWave Central and open it again. Model 10 is now restored. In this example:

- **My Fileset A** no longer appears in the Filesets view, although its uploaded data may still exist on the server.
- **Old Fileset B** appears again in the Filesets view, but its payload data is missing from the server.
- The association for **Fileset C** points back to **Group 1**.

<p class="callout danger">Restoring a previous model does not restore deleted Fileset payload data. Use your backups for that.</p>

## Additional Information

If you need to recover from a major model mistake, contact [FileWave Support](https://help.filewave.com) before making more changes.