Closed vkhatri closed 8 years ago
Right, the prefix option only affects backup and not restore. The equivalent restore option would be the transform. This is mainly due to the parameters accepted by the upstream consul golang api package.
I have two thoughts here:
I've pushed some new commits to master that break out the various operations into sub commands. There are now three different modes of operation (backup, restore, dump) that each have their own flag sets. Hopefully this prevents confusion in the future.
Hello! I know as per help menu, option
prefix
is intended only forbackup
operation. But, when used withrestore
, the result is misleading.As shown above, restore result indicated restore of 1 Key to
foo/x/z
. But, nothing was restored. As you can see i tried to backupfoo/x/z
and there is nothing to backup. I can confirm there is no keyfoo/x/z
.I think
prefix
option should be ignored with a message or should return an error when used withrestore
.