> For the complete documentation index, see [llms.txt](https://docs.maitredpos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maitredpos.com/maitred/maitred-complete-online-documentation/chap-7-server-control/tools/control-update.md).

# Control Update

### Control Update

The control file is a file that is updated in real time to assure the integrity of all files managed by the file server. There are only two cases when you will need to make a Control Update:

**When restoring a new database into an existing system.**

If you restore data files from another system, the control file from the source system will never be the same as the control file from the target system. You can perform a control update without any worries.

**After a Day Rebuilder**

If for any reasons you experience problems with the file server (hard disk failure, electricity, …), you might need to run the Day Rebuilder program to recreate all transactions that were done for the current day. If the program failed to recreate all transactions, the system will not restart and you will get a control file error.

If the system shows you that the check number from the CONTROL file on the left is LOWER then the system's ACTUAL last check number on the right, you can perform a control update without any worries either.

{% hint style="danger" %}
WARNING: If the system shows you that the check number from the CONTROL file on the left is HIGHER then the system's ACTUAL last check number on the right, and you perform a control update at that point, you will loose the last checks that were done. Before going ahead, you should try to run the Day Rebuilder option using the second backup. The control update can only be performed using the Distributor password. Once you perform a control update, there is no turning back. Be careful when using this option and if there is any doubt, call the Maitre'D support team.
{% endhint %}

The Z number is the number of times that the End of day was run on the file server.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.maitredpos.com/maitred/maitred-complete-online-documentation/chap-7-server-control/tools/control-update.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
