# Version Control and Restoring Files

Every time you delete or change a configuration, rule set or data file, the console automatically creates an internal backup so that it can be retrieved later.

To restore a file, select the type of file to restore by clicking its type *(configuration, rule sets, test data or data files)* in the administration tree.

<figure><img src="/files/GlfJgyzry9pFLEO659mU" alt=""><figcaption><p>New Rule Set</p></figcaption></figure>

Select the appropriate repository to restore to and click on **Restore**. The restore options panel appears as shown:

<figure><img src="/files/NGOmDUR4Q1i6XqVSuLy2" alt=""><figcaption><p>Restore Rule Sets</p></figcaption></figure>

To restore a file, select the timestamp that is closest to the time you wish to restore to, and a list of available files for that timestamp will be shown. Select all of the files you wish to restore *(hold down the Ctrl key to select multiple files)* and click on **Restore**. The system will automatically backup any files you may be overwriting and will restore the older version.

If you wish, you can clear the repository prior to performing the restore.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomorrowx.com/cap/product-reference/version-control-and-restoring-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
