Skip to content

Automatically backup the configuration when upgrading via a package manager #230

Open
@nelsonaponte

Description

@nelsonaponte

When openHAB is managed by a package manager (apt, yum, dnf) and the user attempts to upgrade it via the package manager, the first step of the upgrade process should be to make a full backup of the current configuration (as done by the command openhab-cli backup) and store it under the standard backups folded (/var/lib/openhab/backups/) using the filename specified in #228.

After the upgrade is completed (successfully or unsuccessfully), a warning message with the message "Please note that a full backup of the old configuration was taken and stored in /var/lib/openhab/backups/ at the beginning of the upgrade process." should be displayed.

Reason

Many users don't know how to backup files or forget to do it before upgrading to a newer OH version. The upgrade process could take care of that for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions