Skip to content

Миграция

При миграции Flussonic Media Server с сервера на сервер нужно перенести файлы конфигурации и лицензии, а также можно перенести архив.

Warning

Исполняемые файлы и установленные библиотеки переносить нельзя. Используйте пакетный менеджер для установки на новом сервере.

Перенос конфигурации и лицензии

Порядок переноса конфигурации:

  1. Установите Flussonic Media Server на новом сервере.

    ``` curl -sSf https://flussonic.com/public/install.sh | sh


2. Move the following files from the old server to the new one using one of the methods described later on this page:

    * `/etc/flussonic/flussonic.conf` — the main configuration file.
    * `/etc/flussonic/license.txt` — license.

3. Stop Flussonic Media Server on the old server:

service flussonic stop

4. Start on the new server:

service flussonic start

**Ways to transfer files:**

* [Transferring the configuration using web interface](#admin-migration-copy_conf_webui)
* [Transferring the configuration using SCP](#admin-migration-copy_conf_scp)
* [Transferring a Configuration Using USB Media](#admin-migration-copy_conf)

### Transferring the configuration using web interface {#admin-migration-copy_conf_webui}

Go to the **Config** -> **Settings** tab both on the new and the old server.
To download the configuration file, click the **Download Config** button. To upload configuration file to the new server, click the **Upload Config** button.

![flussonic ui](webui-config2.png)

Your license key can be viewed in the [client area](<m>manage_link</m>) on the **License keys** tab.

### Transferring the configuration using SCP {#admin-migration-copy_conf_scp}

SCP (Secure CoPy) is a program for transferring files over a network between hosts. It uses SSH for data transfer, including authentication and security protocols that are implemented in SSH.

To copy the configuration and license files from one remote server `remote.host1` to another remote server `remote.host2`, execute the following command:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/ scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/


2. Перенесите следующие файлы со старого сервере на новый одним из описанных ниже способов:

    * `/etc/flussonic/flussonic.conf` — основной файл конфигурации.
    * `/etc/flussonic/license.txt` — лицензия.

3. Остановите Flussonic Media Server на старом сервере.

    ```
service flussonic stop
  1. Start on the new server:
    service flussonic start

Ways to transfer files:

Transferring the configuration using web interface

Go to the Config -> Settings tab both on the new and the old server. To download the configuration file, click the Download Config button. To upload configuration file to the new server, click the Upload Config button.

flussonic ui

Your license key can be viewed in the client area on the License keys tab.

Transferring the configuration using SCP

SCP (Secure CoPy) is a program for transferring files over a network between hosts. It uses SSH for data transfer, including authentication and security protocols that are implemented in SSH.

To copy the configuration and license files from one remote server remote.host1 to another remote server remote.host2, execute the following command:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/
scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/
  1. Запустите на новом.

    ``` service flussonic start


**Ways to transfer files:**

* [Transferring the configuration using web interface](#admin-migration-copy_conf_webui)
* [Transferring the configuration using SCP](#admin-migration-copy_conf_scp)
* [Transferring a Configuration Using USB Media](#admin-migration-copy_conf)

### Transferring the configuration using web interface {#admin-migration-copy_conf_webui}

Go to the **Config** -> **Settings** tab both on the new and the old server.
To download the configuration file, click the **Download Config** button. To upload configuration file to the new server, click the **Upload Config** button.

![flussonic ui](webui-config2.png)

Your license key can be viewed in the [client area](<m>manage_link</m>) on the **License keys** tab.

### Transferring the configuration using SCP {#admin-migration-copy_conf_scp}

SCP (Secure CoPy) is a program for transferring files over a network between hosts. It uses SSH for data transfer, including authentication and security protocols that are implemented in SSH.

To copy the configuration and license files from one remote server `remote.host1` to another remote server `remote.host2`, execute the following command:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/ scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/



**Способы перенести файлы:**

* [Перенос конфигурации с помощью веб-интерфейса](#admin-migration-copy_conf_webui)
* [Перенос конфигурации с помощью SCP](#admin-migration-copy_conf_scp)
* [Перенос конфигурации с помощью USB-носителя](#admin-migration-copy_conf)

### С помощью веб-интерфейса {#admin-migration-copy_conf_webui}

Зайдите в веб-интерфейс Flussonic Media Server на страницу **Config** -> **Settings** и на старом, и на новом сервере.
Чтобы скачать файл конфигурации, на старом сервере нажмите на кнопку **Download Config** в самом низу страницы. Для загрузки файла конфигурации на новый сервер нажмите на кнопку **Upload Config**.

![flussonic ui](webui-config2.png)

Ваш лицензионный ключ можно посмотреть в [личном кабинете](https://my.flussonic.com/) на вкладке **Лицензионные ключи**.

### С помощью SCP {#admin-migration-copy_conf_scp}

SCP (Secure CoPy) — программа для удаленного копирования файлов по сети между хостами. Она использует SSH для передачи данных, в том числе аутентификацию и меры безопасности, которые реализованы для SSH.

Для копирования файлов конфигурации и лицензии с одного удаленного сервера `remote.host1` на другой удаленный сервер `remote.host2` необходимо выполнить команду:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/ scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/


### С помощью USB-носителя {#admin-migration-copy_conf}

Если вы хотите перенести файлы конфигурации с помощью какого-либо USB-носителя, то воспользуйтесь следующей инструкцией.

#### Монтирование USB

Создайте директорию, в которую будем монтировать:

mkdir -p /mnt/usb


Вставьте носитель в USB порт и узнайте имя устройства:

fdisk -l


Результатом этой команды будет:

Disk /dev/sdb: 4008 MB, 4008706048 bytes 118 heads, 53 sectors/track, 1251 cylinders, total 7829504 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x74a37a4d

Device Boot Start End Blocks Id System /dev/sdb1 * 63 7829503 3914720+ b W95 FAT32


Здесь имя устройства: `/dev/sdb1`.

Смонтируйте носитель:

mount /dev/sdb1 /mnt/usb


Проверьте подключение:

mount


#### Копирование конфигурации

cp /etc/flussonic/flussonic.conf /mnt/usb/flussonic.conf cp /etc/flussonic/license.txt /mnt/usb/license.txt


После копирования не забудьте отмонтировать накопитель:

sudo umount /dev/sdb1


#### Установка конфигурации на новый сервер

[Установите](installation.md#install-media-server) *Flussonic Media Server* на новый сервер:

curl -sSf https://flussonic.com/public/install.sh | sh


2. Move the following files from the old server to the new one using one of the methods described later on this page:

    * `/etc/flussonic/flussonic.conf` — the main configuration file.
    * `/etc/flussonic/license.txt` — license.

3. Stop Flussonic Media Server on the old server:

service flussonic stop

4. Start on the new server:

service flussonic start

**Ways to transfer files:**

* [Transferring the configuration using web interface](#admin-migration-copy_conf_webui)
* [Transferring the configuration using SCP](#admin-migration-copy_conf_scp)
* [Transferring a Configuration Using USB Media](#admin-migration-copy_conf)

### Transferring the configuration using web interface {#admin-migration-copy_conf_webui}

Go to the **Config** -> **Settings** tab both on the new and the old server.
To download the configuration file, click the **Download Config** button. To upload configuration file to the new server, click the **Upload Config** button.

![flussonic ui](webui-config2.png)

Your license key can be viewed in the [client area](<m>manage_link</m>) on the **License keys** tab.

### Transferring the configuration using SCP {#admin-migration-copy_conf_scp}

SCP (Secure CoPy) is a program for transferring files over a network between hosts. It uses SSH for data transfer, including authentication and security protocols that are implemented in SSH.

To copy the configuration and license files from one remote server `remote.host1` to another remote server `remote.host2`, execute the following command:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/ scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/


Создайте директорию, в которую будем монтировать USB-носитель:

mkdir -p /mnt/usb


Вставьте носитель в USB порт и узнайте имя устройства:

Смонтируйте:

mount /dev/sdb1 /mnt/usb


Перенесите файлы конфигурации:

cp /mnt/usb/flussonic.conf /etc/flussonic/flussonic.conf cp /mnt/usb/license.txt /etc/flussonic/license.txt


Запустите *Flussonic Media Server*:

service flussonic start


**Ways to transfer files:**

* [Transferring the configuration using web interface](#admin-migration-copy_conf_webui)
* [Transferring the configuration using SCP](#admin-migration-copy_conf_scp)
* [Transferring a Configuration Using USB Media](#admin-migration-copy_conf)

### Transferring the configuration using web interface {#admin-migration-copy_conf_webui}

Go to the **Config** -> **Settings** tab both on the new and the old server.
To download the configuration file, click the **Download Config** button. To upload configuration file to the new server, click the **Upload Config** button.

![flussonic ui](webui-config2.png)

Your license key can be viewed in the [client area](<m>manage_link</m>) on the **License keys** tab.

### Transferring the configuration using SCP {#admin-migration-copy_conf_scp}

SCP (Secure CoPy) is a program for transferring files over a network between hosts. It uses SSH for data transfer, including authentication and security protocols that are implemented in SSH.

To copy the configuration and license files from one remote server `remote.host1` to another remote server `remote.host2`, execute the following command:

scp user@remote.host1:/etc/flussonic/flussonic.conf user@remote.host2:/etc/flussonic/ scp user@remote.host1:/etc/flussonic/license.txt user@remote.host2:/etc/flussonic/ ```

Готово!

Перенос архива

Для переноса архива используйте механизм репликации.

Перенос архива возможен в плановом режиме, то есть когда старый сервер может некоторое время работать одновременно с новым. Обратите внимание, что для этого у вас должна быть в запасе лицензия хотя бы на один дополнительный сервер. Например, если у вас лицензия только на один сервер, вы не сможете запустить несколько серверов Flussonic Media Server одновременно.

Если миграция происходит из-за неисправности старого сервера, то перенести архив не удастся. Просто начните запись архива на новом сервере заново. Во избежание потери архива в будущем заранее настройте репликацию.