Comments (6)
The -dump option simply returns the raw decrypted/decompressed output from the Consul API. It is just an easy way to "view" your backup files.
-- Aaron
On Mar 6, 2016, at 10:10 PM, Mat Schaffer [email protected] wrote:
I noticed that the -dump option provides values as base64 encoded.
Would be possible/preferable to display them as straight strings in the dump output?
—
Reply to this email directly or view it on GitHub.
from consul-backinator.
For sure. My thinking was that if we had multiple backup files it could be useful to see the full set of keys & values to confirm we're reloading the best possible backup. For the time being I came up with this:
> consul-backinator -restore -dump |\
jq -r '.[] | [.Key, .Value] | @sh' |\
xargs -I{} -n1 sh -c 'echo $(echo {} | cut -d" " -f1)=$(echo {} | cut -d" " -f2 | base64 -d)'
But it's pretty roundabout compared with what I'm guessing it'd take to have the dump code show decoded values.
Maybe -dump -decode
would be better?
from consul-backinator.
Got it. So instead of just decoding would you actually prefer a "human readable" output? Maybe something in ascii table format?
Something like this ... https://github.com/olekukonko/tablewriter
from consul-backinator.
That sounds like a cool idea. I haven't put much time into brainstorming
formats but so long as it's diffable it should be good.
On Tuesday, 8 March 2016, Aaron Hurt [email protected] wrote:
Got it. So instead of just decoding would you actually prefer a "human
readable" output? Maybe something in ascii table format?—
Reply to this email directly or view it on GitHub
#1 (comment)
.
-Mat
matschaffer.com
from consul-backinator.
I couldn't think of a nice way to use a table or other format with all the possible options for a data payload in a KV store. I settled on just a very simple output format ...
Key: keyName
ValueHere and Here
and Here
Key: someOtherKey
more Values and Stuff
This should be greppable/diffable and give you approximately what you wanted.
from consul-backinator.
Looks fantastic. Thanks!
from consul-backinator.
Related Issues (20)
- Allow use of AWS IAM roles HOT 17
- docker: Error response from daemon: oci runtime error: container_linux.go HOT 7
- Failed to backup key data: InvalidBucketName HOT 13
- Failed to backup key data: BucketAlreadyOwnedByYou HOT 2
- Failed to backup key data: BucketAlreadyOwnedByYou HOT 1
- docker oci runtime error: container_linux.go:247 HOT 6
- support for multiple address value (-add) HOT 1
- unable to debug the 5xx error HOT 2
- Unable to restore queries HOT 6
- 'dump' errors when dumping acl or query backups. HOT 5
- rpc error permission denied while restoring keys to consul HOT 6
- Failed to backup ACL tokens: Unexpected response code: 403 (Permission denied) HOT 3
- Add a frequency/interval option HOT 2
- [Discution] How to schedulle this a Docker orchestration manager like Swarm or K8s? HOT 3
- Minio Support HOT 13
- panic: standard_init_linux.go:178: exec user process caused "no such file or directory" HOT 3
- Tries to CreateBucket on an existing bucket. HOT 2
- Release archive extract from Dockerfile does not work HOT 5
- Consul backinator doesn't work with k8s service account with s3 permissions
- consul-backinator does not backup ACL tokens in Consul 1.4+ HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consul-backinator.