A backup service will be created if the etcd cluster has backup enabled. The backup service saves backup for the etcd cluster based on the requirement of the backup spec.
It also exposes an HTTP API for requesting a new backup and retrieving existing backups.
The backup service requests a backup from the etcd cluster immediately when it receives the
The backup service returns the most recent backup in the body of the HTTP response when it receives the
etcdVersion. For example, if we want to get a backup for etcd server 3.1.0, we should set etcdVersion to 3.1.0. Backup service will check the if its latest backup can be used to restore a 3.1.0 etcd cluster.
The backup service returns the service status in JSON format. The JSON payload is defined in pkg backapi.ServiceStatus.