MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Kubernetes cluster backup and restore using “etcdctl” tool

What is etcd?
etcd is a distributed reliable key-value store for the most critical data of a distributed system, with a focus on being:

  • Simple: well-defined, user-facing API (gRPC)
  • Secure: automatic TLS with optional client cert authentication
  • Fast: benchmarked 10,000 writes/sec
  • Reliable: properly distributed using Raft

etcd is written in Go and uses the Raft consensus algorithm to manage a highly-available replicated log.

etcd is used in production by many companies, and the development team stands behind it in critical deployment scenarios, where etcd is frequently teamed with applications such as Kubernetes, locksmith, vulcand, Doorman, and many others. Reliability is further ensured by rigorous testing.

Etcd features: simple HTTP interface, key-value storage, watch for changes, SSL, TTLs and Raft

Reference
https://github.com/etcd-io/etcd

What is etcdctl
etcdctl is a command line client for etcd.

The v3 API is used by default on master branch. For the v2 API, make sure to set environment variable ETCDCTL_API=2. If using released versions earlier than v3.4, set ETCDCTL_API=3 to use v3 API.

Reference
https://github.com/etcd-io/etcd/tree/master/etcdctl

Install etcdctl tool and Taking Backup

Verify Backup

By the way if you not sure about values used in above command then you can check values from your /etc/kubernetes/manifests/etcd.yaml file.
Let’s confirm status of our backup using,

ETCDCTL_API=3 etcdctl --endpoints https://172.17.0.9:2379 snapshot status /tmp/snapshot-backup.dbCode language: JavaScript (javascript)

How to Restore Cluster from backup?


Now, update values in /etc/kubernetes/manifests/etcd.yaml to use our restored data-dir. To restore cluster using etcdctl tool.\

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Kubernetes Backup and Restore Complete Reference

Kubernetes cluster backup and restore using “etcdctl” tool Kubernetes cluster backup and restore using Velero Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform…

Read More

Shell Bash Scripting: Assignment & Excercise – 7

This exercise uses Bash, rsync and SSH to copy a local file to a remote backup server, then sends an email when the copy finishes. Below the…

Read More

MySql Backup and Restore – A Complete Guide

MySQL logical backups are made with mysqldump, which writes a database out as a plain SQL file, and restored with the mysql client, which runs that file…

Read More

Import all MySQL databases at one time in seperate file for Backup

This page shows two ways to back up MySQL: with mysqldump –all-databases you get one large file, and with a shell loop you get one dump file…

Read More

Cpanel Cheatsheet

This cPanel cheatsheet shows how to run a full server backup from the command line with /usr/local/cpanel/bin/backup, confirm that it worked, and restore accounts from the result….

Read More

Top 10 Hard Drive Recovery Tools in 2026: Features, Pros, Cons & Comparison

Meta Description  Discover the top 10 hard drive recovery tools in 2026. Compare their features, pros, cons, pricing, and recovery options to find the best software for…

Read More