Cloudron update - restore from backup if it fails
-
If the cloudron update commands fails for any reason for my custom app, wouldn't it be useful to immediately suggest to the user to restore the last backup, which they can simply confirm or decline? Because any failed update process will leave the app hanging in a failed state, and we could assume that restoring the last backup is an action the user might want to do most of the time in these cases.
-
Are you thinking of a some kind of UI for restoring? Because if the update itself failed, one can imagine there is no UI either. If you are thinking of a CLI tool, it's maybe possible but in the end it's the same as starting afresh and running setup script . The CLI tool is tricky to maintain (mostly because it will be rarely used and will go unmaintained).
-
I misread your original comment. I guess you are referring to the
cloudron update
command of the CLI tool. I thought this was about a cloudron (platform) update.Currently, the focus of the CLI tool is app development and not for end users as such.... So, one can automate what you want already by writing a small script which calls
cloudron restore
if the update fails.