Restoring from a backup
A restore returns the server, or chosen parts of it, to the date of a snapshot. People, keys, logins, rights and history come back together with the data they belong to; everything else stays as it is today. The restore sheet opens from the Backups tab of the Système window and is open to administrators.
What you choose returns to the date of the backup; the current state is not backed up first. Confirm with your password. To keep today's state as a snapshot, click Back up now and wait for the run to end before you restore.
How to restore
- Open Système → Backups. The Restore from a backup row of the Actions group holds the button Restore…. It is available between runs.
- In the sheet Restore from a backup choose the snapshot in the Snapshot field. The list is newest first, and each snapshot is named by the date and time its backup began, in your time zone. The line under the field gives the Qubix version of that snapshot and the number of tables of the main database (Version … · tables …). Before the first snapshot the field reads No snapshots yet.
- In the What to restore group leave The whole box on, or turn it off and switch on the parts you need.
- Type your password into Current password.
- Click Restore. The button lights up when the snapshot has loaded, the password is typed and at least one part is chosen.
- The sheet closes. The status line of the tab reads In progress: … with the kind Restore, and the journal gets a row with the parts that are coming back.
Annuler closes the sheet at any moment before the start.
The parts
Every part of the snapshot is a row with its name and a line of facts: As of … (for mail — the time of the mail export), the size and Files: …. The sheet lists the parts in this order; the row of the files that come back only with the whole box follows them when the whole-box switch is off (see below):
| Part | What comes back | Lines the sheet may show under it |
|---|---|---|
| Main database | The panel's main database with the files of comments. | Search by meaning catches up with the restored data by itself after the server restarts. People added after the backup date disappear from Qubix, while their chat accounts and messages stay. Company mailbox grants return to the backup date. Sign-ins return to the backup date: people dismissed and keys revoked after it work again, and changed passwords are the previous ones. New people do not get the numbers of people added after the backup date. What Qubix knows about Drive files and call recordings returns to the backup date, while the files are today's: what was removed after it opens with an error. |
| Other databases | The data of the sections that keep a database of their own, such as TeleQube. | Chat accounts created after the backup date disappear, and calls and service messages to those people fail. |
| Drive files | The files of QubDrive. | Files return to the backup date while what Qubix knows about them stays today's: what was added after it opens with an error. |
| Call recordings | The recordings of calls. | Files return to the backup date while what Qubix knows about them stays today's: what was added after it opens with an error. |
| Chat attachments | The files attached in TeleQube. | Files removed after the backup date come back without their messages, and files sent after it open with an error. |
| The latest mail export that the snapshot holds. | A company mailbox created after the mail export comes back empty, and the letters of one removed after it come back without their mailbox. | |
| Search vectors | The data of search by meaning. | Search by meaning goes over the data again after the server restarts and catches up with what changed after the backup date. |
| Vector queue | The queue of vector work. | — |
The lines appear under a part once it is chosen. A line that speaks of two parts drifting apart disappears when the counterpart parts come back in the same run: for example, the line about the files of Drive and the main database is gone when both are chosen.
The whole box and the choice of parts
The switch The whole box is on at first and takes every part of the snapshot that can come back; the part rows then show only names and facts. Turn it off to choose parts one by one: every part that the snapshot holds and that can come back gets its own switch. Under the group, the line The rest stays current reminds that all other parts keep today's state. The row Other files and folders appears under the parts when the switch is off and lists the files that return only with the whole box, with their size and number.
A part that the snapshot holds but this version of Qubix has no way to put back shows Not restorable yet; at present these are Mail and Chat attachments. A snapshot with such a part opens with The whole box turned off, and the parts are chosen one by one.
A part that the snapshot lacks shows the reason instead of the facts:
| Reason | Meaning |
|---|---|
| Not in snapshot | The snapshot lacks such a part. |
| Not on this server | The part was absent from this server when the backup ran. |
| Stopped on this server | The service of the part was stopped when the backup ran. |
| Not on its volume | The part lay outside its own volume. |
| No access to the container service | The backup failed to reach the container service. |
| Read failed | Reading the data of the part failed. |
| Linking files failed | Linking the files into the snapshot failed. |
| No mail export | The mail export was absent on this server. |
| No vector store | The vector store was absent on this server. |
| Snapshot failed | Taking the snapshot of the part failed. |
A part that an earlier restore left unfinished is taken again by the next restore of a snapshot that holds it. The sheet shows such a part switched on and fixed, with the note Included.
Restore chosen in the installation wizard
When the installation wizard was answered with the choice to restore from a backup, the first sign-in of an administrator opens no usual screen: a sheet covers the panel and asks for the saved backup key — the title is Enter a saved key, and the text under it reads Enter the backup key you saved before. It is checked against the backups of this licence and counts as saved outside this server at once. The footer has two buttons:
- Check and save checks the key against the snapshots of this licence. When snapshots are found, the restore sheet described above opens next.
- Start from scratch (on the left) drops the choice: the installation goes on as a clean one, with no restore.
If the licence has no snapshots, the sheet Restore from a backup only says so: This licence has no backups yet.
What happens after Restore
- Before the start Qubix checks that the snapshot reads and that the server has room for the chosen parts. A refusal appears as a red strip under the password, and the server is left as it was. A shortage of room reads "Not enough space to restore: X needed, Y free"; when the volume of one part is short, the part is named after it.
- When the restore touches Main database, Other databases or Search vectors, Qubix stops its background jobs first. It puts the parts back one by one in this order: Main database, Other databases, Drive files, Call recordings, Search vectors, Vector queue, then the files of Other files and folders when the whole box is restored.
- While the data of the sections is being replaced, the chat server and the AI pool are stopped, and they start again afterwards.
- When the restore takes Main database, Other databases or Search vectors, the Qubix server starts again on the restored data, also after a failed part. The panel is unavailable while it starts; open it again after a short while and look at the journal.
- If a part fails, Qubix puts the replaced data of that part back, and the journal row gets the outcome Failed with the reason "Part failed: …" and the name of the part.
Restore works while the storage service has stopped new backups: the existing snapshots stay readable.
Restore and the AI assistant
The assistant reads the snapshots (Snapshots), shows what one of them holds and what putting it back brings (Snapshot contents). A restore is started only by the person in the panel, as described above.