Need to backup etcd meta, wonder if birdwatcher provides API for it?
See title. Is there an example?
If the need is only to backup etcd meta, then backup command will do. No restore supported yet.
If the need is only to backup etcd meta, then
backupcommand will do. No restore supported yet.
Actually, I would like to create some automation job which backs up etcd meta. backup command doesn't seem to meet my requirements. @congqixia
Hi @congqixia, I just want to follow up again on this topic. I am trying to implement a tool which automatically backup etcd on a schedule. The backup command can only be executed after entering the birdwatcher shell. So I wonder if there's any API/SDK to create backup, which is a more direct approach. Thanks!
@Andy6132024 if using a pre-built binary is acceptable, you could try follow command:
./bin/birdwatcher --olc="#connect --etcd [etcd-address] --auto,backup"
currently, birdwatcher is not designed to used as a lib, so using it's internal function might be a little bit tricky here.
--olc="#connect --etcd [etcd-address] --auto,backup"
./bin/birdwatcher --olc="#connect --etcd [etcd-address]:[port] --auto,backup" It works, Ty!
@congqixia Is there a plan to implement restore?
Hi @congqixia, I believe without the procedure to restore, the backup file is not very useful. It's not exactly an ETCD snapshot, but encoded data (protobuf) of various content.