> For the complete documentation index, see [llms.txt](https://docs.17movement.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.17movement.net/conflict-tool/backups-and-restore.md).

# 💾 Backups & Restore

Conflict Tool automatically backs up files before it modifies them.

### Automatic backups

Every apply creates a backup in:

```
backups/<timestamp>/
```

The backup mirrors the affected live resource tree.

It also contains `meta.json`, which stores information such as:

* backup title,
* note entered during apply,
* author,
* affected file list,
* snapshot of the resolved ledger.

### Restoring from the in-game panel

Open the **Backups** panel to see available backups.

Backups are marked as:

* **current** - matches the live files right now,
* **stale** - superseded by a later restore.

You can restore an available backup directly from the panel.

### Restoring from the server console

The `ct_restore` command exists so you can roll back a broken map even if entering the server is not possible.

#### List backups

```
ct_restore
```

Shows backups newest first, including:

* backup ID,
* `[current]` or `[stale]`,
* file count,
* title,
* author.

#### Restore the newest valid backup

```
ct_restore latest
```

Restores the newest backup that is not marked stale.

#### Restore a specific backup

```
ct_restore <id>
```

Replace `<id>` with the timestamp shown by the backup list.

{% hint style="warning" %}
Restored files are not streamed to players immediately. Restart FXServer after any restore operation.
{% endhint %}
