Skip to content

Improve backup restore to redisΒ #1920

@klein0r

Description

@klein0r

Situation:

  1. ioBroker is running on a system with redis
  2. redis is used for objects and states
  3. the system creates backups automatically (to a usb stick)
  4. the system crashed

Solution:

  1. Setting up a new iobroker installation with the installation script (curl -sLf https://iobroker.net/install.sh | bash -)
  2. Restoring the backup from the usb stick

Issue:

  1. The new iobroker installation has configured jsonl as database for objects and states
  2. The backup configuration contains redis as database

After the restore process, all information have been written to jsonl, the redis database is empty but iobroker uses the redis dabase instead of jsonl.

Tested with js-controller 4.0.21


Expected result:

The restore process recognizes, that the backup target is redis and uses that configuration of the backup before restoring the databases

or

The restore process keeps the database configuration of the current (new) installation, restores the database to that target and overrides the database configuration of the restored config (in this case from redis to jsonl). When the user wants to use redis afterwards, the iob setup custom process is required to migrate the data.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions