To Validate the status of etcd database that was backed up and make sure you are able to read the stats from snapshot backup, run below ETCDCTL command. Change /backup directory name in below command to directory where you want to backup etcd database.
sudo ETCDCTL_API=3 etcdctl --write-out=table snapshot status /backup/etcd.db
Below is sample output of above command.
sudo ETCDCTL_API=3 etcdctl --write-out=table snapshot status /home/opc/etcd.db
+----------+----------+------------+------------+
| HASH | REVISION | TOTAL KEYS | TOTAL SIZE |
+----------+----------+------------+------------+
| 56414efa | 940057 | 2001 | 7.0 MB |
+----------+----------+------------+------------+
No comments:
Post a Comment