@makemrproper said in Disaster recovery - Restoring a backup:
As far as I can tell, as an operator I need to keep track of what was the UUID of the container I deleted, in order to restore it.
Sorry for much confusion. Let me first try to explain how to import.
Finding the App's ID
Each Cloudron app has a unique ID. This is separate from the internal docker container id and you should never have to use any docker container id related stuff,
Now the question is how to figure out this unique ID of an uninstalled app. One way is to look into the event log. Select the uninstalled apps as the filter:
54e38dd5-5d1e-4cae-b6d7-c8d259faa5c0-image.png
Then when you click on the event, you will see the app id:
fd6568bb-fd53-44d7-8832-612971b9d9dd-image.png
Locating the backup
The backups are stored with the filename timestamp/app_<id>_v<packageversion>.tar.gz (for tgz backups) or timestamp/app_<id>_v<packageversion> (for rsync backups). The package version is needed in the case where you have a old version of an app and you want to restore to that old version.
Install an empty app
We have to next install the app for appstore. For this go to the appstore and install the app.
68df18aa-cba6-42fb-a512-3caba88bc126-image.png
Notice the package version in the URL bar. Above, I am trying to install package v2.0.5 of wordpress. This version must match the version in the backup we located above.
Import app
Finally, go to app -> configure -> import
OK, all that said, what can be improved here. I see that the way to locate an uninstalled app's id is missing from the docs. I can add that part. Is there anything else we can fix on our side? Maybe we can keep the app's fqdn -> uuid listing alongside the backups?