-
Notifications
You must be signed in to change notification settings - Fork 166
Implement backup, restore and reset of app data via API #940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Implement backup, restore and reset of app data via API #940
Conversation
I like the concept. |
Looking forward to first implement and test Data Removal in few coming days. |
1246ff2
to
1f2b478
Compare
23c13e6
to
c9ca2e2
Compare
4e52864
to
21ab5a7
Compare
6dc9f9a
to
911f437
Compare
Can this be closed now that PR #945 was merged? |
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 ✌🏻🙏🏻👍🏻 ) |
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. |
I'm fine with the simple reset part that is mostly done as of now. |
Possibility to download tgz of data would be clean and simple. |
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
5ce9d22
Compare
This reverts commit 5b3df52.
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 |
Small issue to re-test. Log attached here albyhub.log |
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 |
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. |
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)? |
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?