Implement backup, restore and reset of app data via API - #940
Conversation
tehelsper
commented
May 29, 2025
I like the concept. |
tlindi
commented
May 29, 2025
Looking forward to first implement and test Data Removal in few coming days. |
1246ff2 to
1f2b478Compare23c13e6 to
c9ca2e2Compare4e52864 to
21ab5a7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
6dc9f9a to
911f437Comparetehelsper
commented
Jul 6, 2025
Can this be closed now that PR #945 was merged? |
tlindi
commented
Jul 7, 2025
Sir, unfor not - I think. I have not yet fould time to fix issue mentioned here: And backup & restore are still to be implement. |
I had an idea to make backups version dependant, like here: (And restore on install_phoenixd) But as If your #945 does both I'm just happy with it. (And willing to test as soon as I get my rig online ✌🏻🙏🏻👍🏻 ) |
tehelsper
commented
Jul 8, 2025
This is getting complex - I'm leaning towards not merging, especially with versioned backups. That means there's tracking, displaying in the UI, potential for old backups not working with new app versions, etc... An option to download a tar.gz file for each app data folder may be better. |
tehelsper
commented
Jul 8, 2025
I'm fine with the simple reset part that is mostly done as of now. |
tlindi
commented
Jul 12, 2025
Possibility to download tgz of data would be clean and simple. |
tlindi
commented
Jul 12, 2025
I'll fix app->short_name and remove references to backup and restore. |
changed to data_folder which is used as variable on application_info.py
Implement simplification per requested at mynodebtc#945 (comment)
This reverts commit 9f01df1.
2910238 to
5ce9d22CompareThis reverts commit 5b3df52.
tlindi
commented
Jul 13, 2025
Reset works now after this commit on master. And as this PR has much of hazzle - I'm okay for this to be Closed without merge. If download |
tlindi
commented
Jul 13, 2025
Small issue to re-test. Log attached here albyhub.log |
tlindi
commented
Jul 13, 2025
Re-tested - Uninstalled and then reinstalled. Afterwards reset works. Hickup maybe caused concurrently ongoing BTCPay Server re install and not rebooted. I'd say Work's for me :D |
tehelsper
commented
Jul 14, 2025
OK, I'll try the reset on AlbyHub once I get to working on the automated setup. That error makes it seem like it's trying to re-install the docker container after clearing data for some reason. Actually, now that I think about it, several apps probably can't be reset entirely. Some installations place specific files in the data folder and may not properly set those files up in the pre-startup scripts. For example, the mempool clear only deletes a subset of the data folders within its data folder. Just a thought that the "reset" would need to be tested on each app it gets enabled on. |
Yes, sure testing is need. |
tlindi
commented
Jul 14, 2025
Could you please also make switch to disable automated config to LND, for advanced users to be able to manually config custom setup? (like me, for manually setup Alby Hub to connect phoenixd Community App by me)? |
tlindi
commented
Jul 14, 2025
I re-tested issue, and I could not replicate. Non-starting Alby Hub after reset from Default setup could have been caused by the fact that I was reinstalling BTCPay same time as i did reset. But more tests never do harm... |
Application Data Management
Many applications data would be nice to have backup initiation possibility. And also restore and "Remove" (aka Factory reset) in case of some miss hap.
Instead of creating such routines separately for each App, should one API based functions be likely better way.
Checklist
List of test device(s)
@tehelsper - mind to comment if functions are planned to proper files, and if you like idea / way to do this?