Restreamer
Search…
Migration
How to migrate from Restreamer v0.6.x to v2.x
If you are currently using an older version of Restreamer and want to upgrade to the latest version, you have to follow these steps. In case you don't need or want to keep your current stream settings you can go the Quick Start page and install Restreamer v2.x from scratch.
This guide assumes that your current docker command line looks like
1
$ docker run -d --restart always \
2
--name restreamer \
3
-e "RS_USERNAME=admin" -e "RS_PASSWORD=datarhei" \
4
-p 8080:8080 -v /mnt/restreamer/db:/restreamer/db \
5
datarhei/restreamer:latest
Copied!
Your actual command line might have more enviroment variables or different paths to the mounted directories.
  1. 1.
    Upgrade your Restreamer to v0.6.8 (https://github.com/datarhei/restreamer/releases/tag/v0.6.8). If you don't upgrade to v0.6.8, all your settings might get lost during the migration.
  2. 2.
    Start Restreamer v0.6.8 and start streaming from the video source.
  3. 3.
    Stop Restreamer v0.6.8 by stopping the Docker container, e.g. docker kill restreamer and then docker rm restreamer.
  4. 4.
    Pull the latest Restreamer image, e.g. docker pull datarhei/restreamer:latest.
  5. 5.
    Adjust the mounted volumes by replacing -v /mnt/restreamer/db:/restreamer/db with -v /mnt/restreamer/db:/core/config -v /opt/restreamer/data:/core/data in your docker command line.
  6. 6.
    Start Restreamer. Now the settings from v0.6.8 are imported to v2.x
  7. 7.
    Done.
Your docker command should now look like
1
$ docker run -d --restart always \
2
--name restreamer \
3
-e "RS_USERNAME=admin" -e "RS_PASSWORD=datarhei" \
4
-p 8080:8080 \
5
-v /mnt/restreamer/db:/core/config -v /opt/restreamer/data:/core/data \
6
datarhei/restreamer:latest
Copied!
After the old settings have been successfully imported, the old settings database (v1.json) stored in /mnt/restreamer/db will not be used anymore. A new settings database (db.json) and a config file (config.json) have been created in that directory.

Review your Docker command line

In case you are using any environment variables (command line options that start with -e RS_), they will be ignored after the first start of Restreamer v2.x (see step 6 above). You can remove them from your docker command line.
As in the example command line above, there are two environment variables RS_USERNAME and RS_PASSWORD. You can remove those because during the first start of Restreamer v2.x their values were transferred into the config.json.
Your docker command should now look like
1
$ docker run -d --restart always \
2
--name restreamer \
3
-p 8080:8080 \
4
-v /mnt/restreamer/db:/core/config -v /opt/restreamer/data:/core/data \
5
datarhei/restreamer:latest
Copied!
Your actual command line might have different paths to the mounted directories. Please adjust the example above accordingly in case you want to copy/paste it.
Export as PDF
Copy link