| Sv translation | ||
|---|---|---|
| ||
Данные Traffic Monitor хранятся в Data Storage в корзинах (bucket). Чтобы создать резервную копию хранилища бинарных данных, |
...
нужно создать копии этих корзин. Эта процедура состоит из следующих шагов: |
...
...
В процессе создания копии Data Storage потребуется выполнять запросы с помощью утилиты curl.
<ADDRESS> вы можете указывать:
|
...
Чтобы можно было создать резервную копию Data Storage, нужно задать директорию для нее. Рекомендуем делать это при установке хранилища, |
...
указывая при запуске инсталлятора параметр Чтобы |
...
задать директорию уже после установки, добавьте ее в деплоймент Data Storage. Для этого:
|
...
|
...
Для работы с сервисом Data Storage нужно получить Bearer-токен для HTTP-авторизации. В запросах к Data Storage его нужно указывать в заголовке Authorization. Чтобы получить токен, отправьте в Data Storage запрос следующего вида:
где В результате будет выведен заголовок Authorization в следующем формате:
Чтобы получить список идентификаторов корзин Data Storage, в которых хранятся данные Traffic Monitor, подключитесь к базе данных (БД) Traffic Monitor и выполните запрос:
Если вам нужно узнать список всех существующих корзин Data Storage (их идентификаторы bucketID), выполните следующий запрос к сервису хранилища:
где
Также вы можете отфильтровать список корзин с помощью регулярного выражения, используя утилиту jq. Например, следующий запрос найдет все корзины, у которых значение bucketID начинается на подстроку
Чтобы создать задачу на бэкап корзины, выполните следующий запрос:
где В ответ будет выведен идентификатор созданной задачи:
Также вы можете создать задачу на бэкап корзины и получить идентификатор этой задачи, используя утилиту jq:
Далее по идентификатору задачи можно проверить успешность выполнения резервного копирования корзины.
Чтобы убедиться в том, что копирование успешно завершено, проверьте статус задачи. Для этого выполните запрос:
где В случае успеха будут выведены имена созданных файлов данных и индекса в директории бэкапа:
У случае неудачи будет выведено описание ошибки:
Убедитесь в том, что задача завершена и имеет один из следующих статусов: Success, Canceled, Failed. Также вы можете получить статус задачи, используя утилиту jq:
|
| Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In Data Storage, Traffic Monitor data are stored in buckets. To back up the storage of binary data, you need to back up these buckets. This procedure consists of the following steps:
During the backuping process you need to send requests using the curl utility.
<ADDRESS>:
To enable creating a backup of Data Storage, you need to specify a directory for that. We recommend to do it when you install the storage. For this, run the installer using the To specify the directory after installation, add it to the Data Storage deployment. For this:
To work with the Data Storage service, you need to get a Bearer token for HTTP authorization. In requests to Data Storage, specify it in the Authorization header. To get the token, send the following request to Data Storage:
where As a result, you will see the Authorization header in the following format:
To get a list of identifiers of Data Storage buckets which store Traffic Monitor data, connect to the Traffic Monitor database and run the query:
If you need to know a list of all existing Data Storage buckets (their bucketID identifiers), send the following request to the storage service:
where
Also you can filter the bucket list with a regular expression using the jq utility. For example, the following request will find all buckets whose bucket ID value begins with the "bar" substring:
To create a task of bucket backup, send the following request:
where In response, the ID of the created task will be displayed:
Also you can create a bucket backup task and get the ID of this task using the jq utility:
Next, you can check successful completion of bucket backup using the task ID.
To make sure that backuping completed successfully, check the status of the task. For this, send the request:
where If succesfull, you will see names of data and index files created in the backup directory:
In case of failure, the error description will be displayed:
Make sure that the task is completed and has one of the following statuses: Success, Canceled, Failed. Also you can get the task status using the jq utility:
|