> For the complete documentation index, see [llms.txt](https://docs.clore.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clore.ai/clore.ai/clore.ai-ru/dlya-khostov/server-offline-on-clore.ai/how-to-reinstall-while-keeping-the-old-token.md).

# Переустановка с сохранением токена

**Метод первый (предпочтительный)**

Файл токена находится по пути /opt/clore-hosting/client/auth. Для удобного копирования вы можете использовать программу с файловым менеджером, например Snowflake:

<figure><img src="/files/b0ef8700104ac2712270f10c8d8e14a81a8eb189" alt=""><figcaption></figcaption></figure>

1. Убедитесь, что ваш компьютер и сервер находятся в одной локальной сети.
2. Перетащите файл auth на ваш компьютер или флеш-накопитель.
3. Переустановите Hive OS с помощью команды:

   ```
   hive-replace -y --stable
   ```
4. Следуйте инструкциям установки, и вместо использования команды:

   ```
   /opt/clore-hosting/clore.sh --init-token <token>
   ```

   просто верните файл auth обратно в`/opt/clore-hosting/client/`каталог
5. Перезагрузите сервер:

   ```
   reboot
   ```

**Метод второй**

1. Подключитесь к серверу по SSH или откройте Hive Shell и выполните команду:

   ```
   mcedit /opt/clore-hosting/client/auth
   ```

   Файл auth откроется в текстовом редакторе. Скопируйте его содержимое и сохраните на вашем компьютере, например, в текстовом редакторе.

<figure><img src="/files/77f0370f7837108386e81bf3cf47e83ece63daf9" alt=""><figcaption></figcaption></figure>

2. Нажмите F10, чтобы выйти из редактора.
3. Переустановите Hive OS с помощью команды:

   ```
   hive-replace -y --stable
   ```
4. После завершения установки последовательно выполните следующие команды:

   ```
   cd /opt/clore-hosting/client/
   touch auth
   mcedit auth
   ```

   В текстовом редакторе откроется пустой файл auth. Вставьте ранее сохранённое содержимое старого файла.
5. Нажмите F2, чтобы сохранить, и F10, чтобы выйти.
6. Перезагрузите сервер:

   ```
   reboot
   ```


---

# 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.clore.ai/clore.ai/clore.ai-ru/dlya-khostov/server-offline-on-clore.ai/how-to-reinstall-while-keeping-the-old-token.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.
