myENA / consul-backinator

Command line Consul backup and restore utility supporting KVs, ACLs and Queries
Mozilla Public License 2.0
226 stars 22 forks source link

KV restore #20

Closed samber closed 8 years ago

samber commented 8 years ago

Hi guys,

What about a copy-before-delete feature that would move KV under a restore.bak/ prefix, prior to restore data ?!

aaronhurt commented 8 years ago

The restore doesn't actually delete currently unless you explicitly tell it to clear the tree before restoring. It will however happily replace any existing keys. I'm not sure adding a loop to move keys around inside the KV store is a valid solution to what should just be a CYA process from the admin perspective (backup before you restore).

aaronhurt commented 8 years ago

Closing this PR as I don't currently see a need to implement this as an automated process. Please re-open if you really think it's needed.