Command "etcdctl3 snapshot save" fails if the destination file is not under /var/lib/etcd

Solution Verified - Updated -

Issue

# mkdir -p /backup/etcd-$(date +%Y%m%d)
# etcdctl3 snapshot save /backup/etcd-$(date +%Y%m%d)/db
Error:  could not open /backup/etcd-20190410/db.part (open /backup/etcd-20190410/db.part: no such file or directory)

Environment

  • OpenShift Container Platform 3.11
  • etcd 3.2.22

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content