verbose backup

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
manjh
Posts: 749
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

verbose backup

Post by manjh »

I've run into database corruption a few times now, and every time it was a struggle to get out of it. A straight forward DB restore sometimes also restores the corruption.
Made me think of a potential improvement. Before I raise this at Github, just wanted to throw it out there and see how the community feels about it.

My suggestion is to add the following functions to the backup/restore tab/:

backup-verbose. This results in a text file, with one line for each object in the database.
restore-verbose. This function would read a text file, create objects in the db
init-db. clean the db.

This would give the enduser two powerful options: first, backup/init/rebuild the database, removing any corruption.
Also, as a spinoff, the user could manually add devices to the text file before rebuilding. Although this last function may need some more thinking, to prevent bad things happening... :?

Any thoughts?
Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest