A new version of the Edge Client was just released and I got a question about how to upgrade.
The Edge Client is more or less stateless*. It doesn't have to be backed up. When an Edge Client starts it automatically downloads it's apps and configuration and start executing them. So if no custom software was added to an Edge Client updating it is easy.
The only thing that needs to be copied from the old one is the file /etc/iot-open/iotopen.json and even if that file is lost it is very easy to generate a new one from the installation. So here is an example of how it can be done.
docker pull ghcr.io/iotopen/edge-client:latest
docker cp <currently running container>:/etc/iot-open/iotopen.json iotopen.json
docker run -d --restart unless-stopped --name new-name-of-container ghcr.io/iotopen/edge-client:latest
docker cp iotopen.json new-name-of-container:/etc/iot-open/iotopen.json
docker stop <currently running container>
docker restart new-name-of-container
docker rm <currently running container>
If you want to reuse the name of the old container it has to be deleted first. There are many ways to do the same thing, but this is the main tasks.
*) Please observe that the apps might not be stateless even though that is best practice.