In this section, we will learn how to backup and restore the Docker Enterprise UCP platform.
As UCP runs on top of Docker Swarm, this is the first component to review when preparing a good backup strategy.
We should run periodic backups of Docker Swarm. These backups will allow us to recover cluster configuration and workloads.
Docker Swarm's backup
We introduced how to execute a Docker Swarm backup in Chapter 8, Orchestration Using Docker Swarm. In that chapter, we described the content we should take care of. Let's learn about the steps to follow to implement a production-ready backup of Docker Swarm for the Docker Enterprise platform.
Make sure you have applied the auto-lock feature to improve secure access to Docker Swarm data as we will need it. The lock key will not be stored with a backup. You should store it in a safe place.
We will execute the backup steps on all non-leader manager nodes. This will ensure that any of the managers except the leader...