Skip to content

Do not delete the backup files when uninstalling OH via a package manager #229

Open
@nelsonaponte

Description

@nelsonaponte

When openHAB is managed by a package manager (apt, yum, dnf) and the user attempts to remove (uninstall) openHAB using the package manager, the folder under /var/lib/openhab/backups/ and all of its content should not be deleted.

If possible, a warning message saying "The backups folder under /var/lib/openhab/backups/ was not automatically deleted so you don't lose data if you want to reinstall openHAB. Please, delete it manually if required." should be displayed once the remove process ended successfully.

Reason

The purpose of this enhancement is to allow users to keep their backups when uninstalling openHAB, in case they need them in the future. Many users may not know or remember there are backups in the folder that they may need later and would forget to manually move them to another location.
Moreover, with #230, users may now know that there are backups automatically taken before any upgrade process.

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