![]() |
|
Restore parts of backup - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: Restore parts of backup (/showthread.php?tid=6189) |
Restore parts of backup - stianj - 14.11.2025 To follow up on my misery, is it possible to restore just parts of an backup? I used "storage.clear('key')" instead of "storage.delete('key')" and obviously lost much of my config. That's what you get for scripting when you should have been sleeping. (But it's funny that it worked for a long time after...) I would like to restore mqtt client and new visu config from my nearly three months old backup (yes, I know) - but not touch scripts and objects and stuff. Is there any way? RE: Restore parts of backup - Daniel - 14.11.2025 The Visu has its own backup/restore option so if you restore old backup and make backup of visu then you can restore it back in latest backup. RE: Restore parts of backup - stianj - 14.11.2025 Ok, that will work, thanks. Just browsed through a project backup, and I see under storage/db there is both a backup.db and a current.db - there is no way that can help me? When is the current.db copied to backup.db, so to speak? RE: Restore parts of backup - admin - 14.11.2025 During each sync (once in 30 minutes) current.db is renamed to backup.db and old backup is removed. Certain apps like Visu use Redis to store the configuration. Only the current state of this storage is saved. RE: Restore parts of backup - stianj - 14.11.2025 Ok, thanks. Last question though, I see that (new) visu, mosaic and mqtt client lost its config, while mqtt broker and zigbee kept its. Could there be other consequences I have not yet discovered? RE: Restore parts of backup - admin - 14.11.2025 ZigBee uses the main database for configuration storage. Only apps that use Redis are affected in your case. Any scripts that use storage functions will also lose the stored values. RE: Restore parts of backup - stianj - 14.11.2025 Ok, thanks. Just noticed that all my MQTT GA's are still being updated, even though the MQTT client is with no topics or connection settings or anything. Interesting. RE: Restore parts of backup - admin - 14.11.2025 Most apps load the whole configuration when starting up. The app will continue to function if the configuration is deleted afterwards but the app is not restarted. |