> 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="https://1059281095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbyNlC5NV8aIpXnc76G7w%2Fuploads%2FOEv5FeKXt8Mhv6xZuqb8%2Fimage%20(12).avif?alt=media&amp;token=d84a9415-ae1e-4dee-81e1-346834ecab1b" 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="https://1059281095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbyNlC5NV8aIpXnc76G7w%2Fuploads%2Fbha0fjhPhtAwlnYnOKTL%2Fimage%20(36).png?alt=media&amp;token=c8053efb-ff69-4f83-b34c-aa16f0f45caa" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
